flutter_background_service icon indicating copy to clipboard operation
flutter_background_service copied to clipboard

W/FlutterJNI(31225): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: plugins.flutter.io/connectivity_status. Response ID: 0

Open sokunsamnang opened this issue 3 years ago • 1 comments

I want to my app check connectivity to process something in background. but when I killed app, it output this message:

W/FlutterJNI(31225): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: plugins.flutter.io/connectivity_status. Response ID: 0

How to fix this??

Thanks!!!

sokunsamnang avatar Mar 31 '21 09:03 sokunsamnang

some plugins require an Activity in order to work. Flutter BackgroundService doesn't run an Activity at all, so you can't use plugins that require an Activity.

ekasetiawans avatar Apr 04 '21 13:04 ekasetiawans