oddbit / flutter_facebook_app_events

Flutter Plugin for Facebook App Events
https://pub.dev/packages/facebook_app_events
Apache License 2.0
119 stars 296 forks source link

[Bug]: iOS app does not start with "FacebookAppID" key in Info.plist #324

Closed RahmiTufanoglu closed 5 months ago

RahmiTufanoglu commented 6 months ago

Is there an existing issue for this?

Current Behavior

The application does not launch on iOS.

I have set up the plugin as described on the homepage (https://pub.dev/packages/facebook_app_events). However, the iOS app will not launch. For some inexplicable reason, the app launches if I omit the FacebookAppID key in Info.plist.

This is the error message: [VERBOSE-2:FlutterDarwinContextMetalImpeller.mm(37)] Using the Impeller rendering backend.

Running it without impeller I get: Error connecting to the service protocol: failed to connect to http://127.0.0.1:50598/ltPdOnxbwtk=/

Expected Behavior

App should start on iOS.

Steps To Reproduce

Just add a configuration like the one below and run the app on iOS:

<key>CFBundleURLTypes</key>
<array>
    <dict>
    <key>CFBundleURLSchemes</key>
    <array>
        <string>fbXXXXXXXXXXXXXXX</string>
    </array>
    </dict>
</array>
<key>FacebookAppID</key>
<string>XXXXXXXXXXXXXXX</string>
<key>FacebookDisplayName</key>
<string>test-2</string>

Platform

iOS

Flutter Doctor

[✓] Flutter (Channel stable, 3.13.9, on macOS 14.1 23B74 darwin-arm64, locale en-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] IntelliJ IDEA Community Edition (version 2023.1.5)
[✓] VS Code (version 1.83.1)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!
advancedngwarati commented 6 months ago

Same here, having the exact same issue. @RahmiTufanoglu did you manage to get any solution?

RahmiTufanoglu commented 6 months ago

@advancedngwarati I don't have a solution at the moment. If I will have one, I will post it here.

antonoddbit commented 6 months ago

@RahmiTufanoglu @advancedngwarati We will investigate this on newest Xcode, previously this issue not happen on previous Xcode

github-actions[bot] commented 6 months ago

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.

galvanu commented 6 months ago

I'm facing the same issue Any solution/workaround?

antonoddbit commented 6 months ago

@RahmiTufanoglu @galvanu @advancedngwarati Hi Have you tried adding this to your info.plist for fixing the impeler?

<key>FLTEnableImpeller</key>
  <false />

Here is the stack overflow source about this: https://stackoverflow.com/questions/76968264/how-can-i-solve-using-the-impeller-rendering-backend-error

galvanu commented 6 months ago

@RahmiTufanoglu @galvanu @advancedngwarati Hi Have you tried adding this to your info.plist for fixing the impeler?

<key>FLTEnableImpeller</key>
  <false />

Here is the stack overflow source about this: https://stackoverflow.com/questions/76968264/how-can-i-solve-using-the-impeller-rendering-backend-error

Yes, as mentioned in @RahmiTufanoglu post, running it without impleller throws the following exception:

Error connecting to the service protocol: failed to connect to http://127.0.0.1:50598/

And the application not starting.

antonoddbit commented 6 months ago

@galvanu When I am reproducing the bug, after I added that impeller plist it's start working. After that on my side it showing:

flutter: The Dart VM service is listening on http://127.0.0.1:49259/3U-PqS1W4DU=/

These impeller or connection error should be from dart/flutter env or config on your computer Here github issue similar with this thread https://github.com/flutter/flutter/issues/138775

github-actions[bot] commented 5 months ago

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.

RahmiTufanoglu commented 5 months ago

I can start the ios app adding

<key>FLTEnableImpeller</key>
<false/>

in Info.plist