Skip to content

iOS - Privacy Manifest #158

@amcalgates

Description

@amcalgates

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions