amcalgates opened a new issue, #192: URL: https://github.com/apache/cordova-plugin-device/issues/192
# Feature Request ## Motivation Behind Feature On May 1st, Apple will require privacy manifests in all new app store submissions ([source](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api?language=objc)). ## Feature Description It appears Cordova has not yet officially added a way for plugins to handle this ([source](https://github.com/apache/cordova-ios/issues/1391)), but the latest cordova-ios release does provide support for an app-level privacy manifest ([source](https://cordova.apache.org/announcements/2024/04/03/cordova-ios-7.1.0.html)). For the time being, it would be helpful if this plugin could provide a privacy manifest file that consumers could manually cobble together for now, adding full support in the future when Cordova provides a way to do so. For this plugin, we need two things in the privacy manifest: 1) API usage 2) `NSPrivacyCollectedDataTypeDeviceID` in the `NSPrivacyCollectedDataTypes` array ([source](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_data_use_in_privacy_manifests?language=objc)). ## Alternatives or Workarounds I can reasonably determine what needs to be included in the privacy manifest so that others can follow suit and manually add these entries to their manifest. 1) for API usage: Grepping the plugin's iOS source files `grep -r -E 'NSURLVolumeAvailableCapacityKey|NSURLVolumeAvailableCapacityForImportantUsageKey|NSURLVolumeAvailableCapacityForOpportunisticUsageKey|NSURLVolumeTotalCapacityKey|NSFileSystemFreeSize|NSFileSystemSize|statfs|statvfs|fstatfs|fstatvfs|getattrlist|fgetattrlist|getattrlistat|activeInputModes|NSUserDefaults'` Yields: ``` ./CDVDevice.m: NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; ``` Which is found in the `uniqueAppInstanceIdentifier` method which is called in `deviceProperties` which is used in `getDeviceInfo`. The usage would seem to possibly fall under two categories: ``` CA92.1 Declare this reason to access user defaults to read and write information that is only accessible to the app itself. This reason does not permit reading information that was written by other apps or the system, or writing information that can be accessed by other apps. ``` 2) For `NSPrivacyCollectedDataTypeDeviceID` consumers of this plugin are probably going to need to provide this themselves. To that end, it may be useful to add an argument to `getDeviceInfo` so that `uuid` can be excluded. That way plugin consumers who do not wish to include `NSPrivacyCollectedDataTypeDeviceID` in their privacy manifest do not need to. -- 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.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