flutter_facebook_app_events
flutter_facebook_app_events copied to clipboard
[Bug]: Privacy manifest file for iOS is missing
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
App being rejected by AppStore connect as long as PrivacyInfo.xcprivacy
is missing.
Expected Behavior
Kindly consider adding a privacy manifest to your library following the new apple policy by adding PrivacyInfo.xcprivacy
file to your project.
For more information, please check Apple's documentation.
Steps To Reproduce
No response
Platform
iOS
Flutter Doctor
[✓] Android Studio (version 2021.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
@oremlawi do you build using 0.19.1 or 0.19.2 ? There is another issues about the Privacy manifest #347 and it should be rejected on 1 May. Could you assist us with screenshot of the rejection?
Honestly my app wan't rejected, but my request was just a reminder to avoid app rejection for the future releases.
And currently we still build using 0.18.3 as building on 0.19.1 is causing crash on iOS.
@oremlawi could you share what crash on newest version, we just release 0.19.2 that using newest FBSDK that support privacy manifest.
Yes sure, but please note that in my case I had to edit locally the SwiftFacebookAppEventsPlugin.swift in version 0.18.3 file and add the if #availble condition to bypass another bug:
Bug for all versions: Swift Compiler Error (Xcode): 'setAdvertiserTrackingEnabled' is only available in iOS 12.0 or newer
Proposed solution:
private func handleSetAdvertiserTracking(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
let arguments = call.arguments as? [String: Any] ?? [String: Any]()
let enabled = arguments["enabled"] as! Bool
let collectId = arguments["collectId"] as! Bool
if #available(iOS 12.0, *) {
FBAdSettings.setAdvertiserTrackingEnabled(enabled)
Settings.shared.isAdvertiserTrackingEnabled = enabled
Settings.shared.isAdvertiserIDCollectionEnabled = collectId
} else {
// Fallback on earlier versions
}
result(nil)
}
Bug in version 0.19.1+ [!] CocoaPods could not find compatible versions for pod "FBSDKCoreKit": In snapshot (Podfile.lock): FBSDKCoreKit (= 15.1.0, ~> 15.1)
In Podfile:
facebook_app_events (from .symlinks/plugins/facebook_app_events/ios
) was resolved to 0.0.1, which depends on
FBSDKCoreKit (~> 17.0)
Looks like it is incompatibility issue, so I had to rollback to 0.18.3 and fix the first bug locally (please see the proposed solution above).
Hi @oremlawi have you fix the incompatibility issue and try newest version?
Hi @antonoddbit, honestly I haven't yet, rather, I hosted the version 0.18.3 locally in order to push a hotfix asap (for my app) and white I get a chance to fix the incompatibility issue, hopefully this weekend..
I updated to version ^0.19.2 and I'm still receiving warnings from the apple store.
I've already made sure that the warnings are due to the Facebook SDK, because when I remove the dependency on facebook_app_events I don't receive messages from the apple store
Is there anything that can be done in this case?
[✓] Flutter (Channel stable, 3.19.5, on macOS 14.0 23A344 darwin-arm64, locale en-BR) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 15.2) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.3) [✓] VS Code (version 1.88.1)
Hi @aquinoartur thanks for updating, could you provide me the screenshoots? So I could check deeper about the issue
This issue is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 5 days.
@antonoddbit we also got warnings from appstore connect on our release last week. We are getting worried that the next release will be rejected. Here the messages we received. We are on v19.2.0
Hi @gianlucaschoefer have you generate the privacy file on your project for these API Declaration? Here documentation about the privacy manifest: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files Here WWDC link about privacy manifest: https://developer.apple.com/videos/play/wwdc2023/10060/?time=88
This was a bug related to how flutter created iOS-Apps were being reviewed. This has been resolved and our app was successfully approved. Thank you, nevertheless!