UnifiedPush / flutter-connector

Mirror of https://codeberg.org/UnifiedPush/flutter-connector
Apache License 2.0
31 stars 11 forks source link

FlutterJNI detached #104

Closed emersion closed 1 year ago

emersion commented 1 year ago

Often times I get this error when receiving a push message:

Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: org.unifiedpush.flutter.connector.PLUGIN_CHANNEL.

My Dart callback doesn't get invoked.

Screenshot_20230102-100941

emersion commented 1 year ago

This can be reproduced reliably by enabling "Do not keep activities" in Android developer settings.