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 #158

Open
amcalgates opened this issue Apr 8, 2024 · 0 comments · May be fixed by #159
Open

iOS - Privacy Manifest #158

amcalgates opened this issue Apr 8, 2024 · 0 comments · May be fixed by #159

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 so that consumers could manually cobble together for now, adding full support in the future when Cordova provides a way to do so.

Presumably the only thing we really need from this plugin is API usage.

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.

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:

./ios/NativeStorage.m:@property NSUserDefaults *appGroupUserDefaults;
./ios/NativeStorage.m:            _appGroupUserDefaults = [[NSUserDefaults alloc] initWithSuiteName:_suiteName];
./ios/NativeStorage.m:- (NSUserDefaults*) getUserDefault {
./ios/NativeStorage.m:	return [NSUserDefaults standardUserDefaults];
./ios/NativeStorage.m:			NSUserDefaults *defaults = [self getUserDefault];
./ios/NativeStorage.m:			NSUserDefaults *defaults = [self getUserDefault];
./ios/NativeStorage.m:			NSUserDefaults *defaults = [self getUserDefault];
./ios/NativeStorage.m:			NSUserDefaults *defaults = [self getUserDefault];
./ios/NativeStorage.m:			NSUserDefaults *defaults = [self getUserDefault];
./ios/NativeStorage.m:			NSUserDefaults *defaults = [self getUserDefault];

This usage would seem to fall under the following category:

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.
@kumo01GitHub kumo01GitHub linked a pull request Dec 8, 2024 that will close this issue
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