flutter_notification_listener
flutter_notification_listener copied to clipboard
Can't get notifications in the background
I have a message:
"Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: flutter_notification_listener/bg_method. Response ID: "
Background service is already running, above error may be caused by flutterEnginer, please check again for me. If everything is correct give me an example of reading notifications in the background and sending to flutter.
Thanks
what if you restart the app, does this works fine?
restarting the app also doesn't get notifications in the background.
Still facing this issue. main.dart: https://github.com/prijindal/your_notifications/blob/097b6760e8a381d04f5c2b84f0d80216f89d078d/lib/main.dart
AndroidManifest.xml: https://github.com/prijindal/your_notifications/blob/097b6760e8a381d04f5c2b84f0d80216f89d078d/android/app/src/main/AndroidManifest.xml
The same issue
W/FlutterJNI(20647): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: flutter_notification_listener/bg_method. Response ID: 13 D/NotificationsListenerService(20647): send event to flutter side immediately!
any update?
hi @jiusanzhou , if you have the path to how to implement this ,please tell i will try to make it work . As i need this soo much.
Hi all, I have raised a fix for this issue. Please have a look : https://github.com/jiusanzhou/flutter_notification_listener/pull/46