ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
11.48k stars 977 forks source link

[Feature]: Provide an iOS privacy manifest compliant version of the device plugin #7495

Closed ptmkenny closed 1 month ago

ptmkenny commented 1 month ago

Description

iOS privacy manifest friendly device plugin

Platforms

Request or proposed solution

It would be great to have a stripped-down version of the device plugin that does not include anything that will require a declaration in the iOS privacy manifest.

Use of the Device plugin currently requires NSPrivacyAccessedAPICategoryDiskSpace to be set in the privacy manifest, even for apps that are not checking disk space for anything. So the app is forced to add the key to the privacy manifest because it is using the device plugin, but since the app is not actually using disk space for anything, all of the reasons for using disk space are invalid.

If other properties such as battery life become subject to the privacy manifest in the future, they should be removed from this "privacy-focused" version of the device plugin.

In addition, part of DeviceInfo, like the name of the device, could be removed.

Alternatives

No response

Additional Information

No response

jcesarmobile commented 1 month ago

duplicate of https://github.com/ionic-team/capacitor-plugins/issues/2071

ionitron-bot[bot] commented 6 days ago

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.