oddbit / flutter_facebook_app_events

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

[Bug]: NSInternalInconsistencyException #379

Closed gareginAtCreatorHero closed 1 month ago

gareginAtCreatorHero commented 1 month ago

Is there an existing issue for this?

Current Behavior

on our ios app , we see a crash when putting our app to background and reopening againg;

Assertion failure in -[FlutterEngine sendOnChannel:message:binaryReply:], FlutterEngine.mm:1253 Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Sending a message before the FlutterEngine has been run.' First throw call stack:

Expected Behavior

we don't see the crash without this plugin

Steps To Reproduce

No response

Platform

iOS

Flutter Doctor

[✓] Flutter (Channel stable, 3.24.3, on macOS 14.6.1 23G93 darwin-x64, locale en-AM)
    • Flutter version 3.24.3 on channel stable at /Users/macbook/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2663184aa7 (6 weeks ago), 2024-09-11 16:27:48 -0500
    • Engine revision 36335019a8
    • Dart version 3.5.3
    • DevTools version 2.37.3
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Users/macbook/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.2
[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      :hammer: https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      :hammer: https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
[✓] VS Code (version 1.94.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.98.0
[✓] Connected device (3 available)
    • Garegin’s iPhone (mobile) • 00008030-001965D901D2802E • ios            • iOS 17.6.1 21G93
    • macOS (desktop)           • macos                     • darwin-x64     • macOS 14.6.1 23G93 darwin-x64
    • Chrome (web)              • chrome                    • web-javascript • Google Chrome 130.0.6723.58
[✓] Network resources
    • All expected network resources are available