erisu commented on PR #1406:
URL: https://github.com/apache/cordova-ios/pull/1406#issuecomment-1990993276

   I tested the following steps:
   
   ```
   % cordova create cordovaTest com.erisu.cordovaTest cordovaTest && $_
   % cordova platform add ../../cordova-ios-7.1.0-dev.tgz
   % cordova build ios
   % cordova run ios
   ```
   
   I confirmed the following were successful:
   - Adding platform (CLI)
   - Building (CLI)
   - Deploy to Simulator (CLI)
   - Building (Xcode)
   - Deploy to Simulator (Xcode)
   
   I confirmed that the PrivacyInfo manifest exists in the app's scope, within 
Xcode.
   
   **Default PrivacyInfo Settings:**
   
   <img width="779" alt="xcode-privacyinfo" 
src="https://github.com/apache/cordova-ios/assets/1029107/cdd01a2c-67b2-47d5-8628-5e9cdd253855";>
   
   I added the following configuration snippet to projects `config.xml`
   
   ```xml
       <platform name="ios">
           <privacy-manifest>
               <key>NSPrivacyTracking</key>
               <true/>
               <key>NSPrivacyCollectedDataTypes</key>
               <array/>
               <key>NSPrivacyAccessedAPITypes</key>
               <array/>
               <key>NSPrivacyTrackingDomains</key>
               <array/>
           </privacy-manifest>
       </platform>
   ```
   
   I prepared the project but running the following command:
   
   ```
   % cordova prepare
   ```
   
   I have confirmed within Xcode that the PrivacyInfo manifest content was 
updated and reflected the change. 
   
   **Updated PrivacyInfo Settings after Cordova Prepare:**
   
   <img width="782" alt="xcode-privacyinfo-after-change" 
src="https://github.com/apache/cordova-ios/assets/1029107/b9667d64-e10d-4f02-a1c0-21cf07527c64";>
   
   After adding configuration changes, I confirmed the following were 
successful:
   
   - Preparing project (CLI)
   - Building (CLI)
   - Deploy to Simulator (CLI)
   - Building (Xcode)
   - Deploy to Simulator (Xcode)
   
   ## Important Notice
   
   * This PR does not handle setting PrivacyInfo from plugin.
   * It does not handle merging of `config.xml` with of `template` defaults.
   * It replaced the entire PrivacyInfo Manifest with the content defined in 
`config.xml`, if set.
   
   E.g. of the last item:
   
   Settings in `config.xml`
   
   ```xml
       <platform name="ios">
           <privacy-manifest>
               <key>NSPrivacyTracking</key>
               <false/>
           </privacy-manifest>
       </platform>
   ```
   
   Running: `cordova prepare`
   
   Generates the following:
   
   <img width="765" alt="xcode-privacyinfo-after-change-with-missing-items" 
src="https://github.com/apache/cordova-ios/assets/1029107/f1993993-5f4a-48f4-bdd9-7160b989a573";>
   
   Noticed that the following items are no longer listed: 
`NSPrivacyCollectedDataTypes`, `NSPrivacyAccessedAPITypes`, 
`NSPrivacyTrackingDomains`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to