fluttercommunity / flutter_workmanager

A Flutter plugin which allows you to execute code in the background on Android and iOS.
825 stars 247 forks source link

🐞 iOS Privacy Manifest is missing #554

Open navaronbracke opened 1 month ago

navaronbracke commented 1 month ago

Version

Technology Version
Workmanager version 0.5.2
Xcode version 15.3
Swift version N/A
iOS deployment target 12.0

Describe the error

WorkManager does not provide a PrivacyManifest. This is required as of May 1st 2024, as indicated by Apple: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api

The UserDefaults API needs a Required Reason set up in the manifest.

xunreal75 commented 1 month ago

You can implement the privacy manifest to your own Main-Runner App. AppStore does not report an issue if correct implemented.

The Sample App should not be uploaded to the AppStore.

navaronbracke commented 1 month ago

I noticed that Apple only reports warnings for your own app's Runner. However, their documentation clearly states that third-party SDKs should provide a Privacy Manifest. To comply with the latter, for the Required Reason API rules, I added said manifest to workmanager in the linked PR (not to the example app, since that is irrelevant for App Store submissions)