Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS - Privacy Manifest #192

Closed
amcalgates opened this issue Apr 8, 2024 · 0 comments · Fixed by #193
Closed

iOS - Privacy Manifest #192

amcalgates opened this issue Apr 8, 2024 · 0 comments · Fixed by #193

Comments

@amcalgates
Copy link

Feature Request

Motivation Behind Feature

On May 1st, Apple will require privacy manifests in all new app store submissions (source).

Feature Description

It appears Cordova has not yet officially added a way for plugins to handle this (source), but the latest cordova-ios release does provide support for an app-level privacy manifest (source).

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).

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.
  1. 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant