flutter_facebook_app_events icon indicating copy to clipboard operation
flutter_facebook_app_events copied to clipboard

[Bug]: Privacy manifest file for iOS is missing

Open oremlawi opened this issue 10 months ago • 3 comments

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.xcprivacyis 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 avatar Apr 04 '24 13:04 oremlawi

@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?

antonoddbit avatar Apr 05 '24 01:04 antonoddbit

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 avatar Apr 06 '24 13:04 oremlawi

@oremlawi could you share what crash on newest version, we just release 0.19.2 that using newest FBSDK that support privacy manifest.

antonoddbit avatar Apr 08 '24 06:04 antonoddbit

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).

oremlawi avatar Apr 09 '24 03:04 oremlawi

Hi @oremlawi have you fix the incompatibility issue and try newest version?

antonoddbit avatar Apr 16 '24 03:04 antonoddbit

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..

oremlawi avatar Apr 16 '24 13:04 oremlawi

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)

aquinoartur avatar Apr 18 '24 14:04 aquinoartur

Hi @aquinoartur thanks for updating, could you provide me the screenshoots? So I could check deeper about the issue

antonoddbit avatar Apr 18 '24 17:04 antonoddbit

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.

github-actions[bot] avatar May 01 '24 00:05 github-actions[bot]

@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

Screenshot_20240502-120555 Screenshot_20240502-120544

gianlucaschoefer avatar May 02 '24 10:05 gianlucaschoefer

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

antonoddbit avatar May 03 '24 09:05 antonoddbit

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!

gianlucaschoefer avatar May 07 '24 13:05 gianlucaschoefer