flutter_notification_listener icon indicating copy to clipboard operation
flutter_notification_listener copied to clipboard

Background callback not working

Open teoprayoga opened this issue 10 months ago • 2 comments

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: 9.

This happen when I run in release mode on android 14 and android 10 kill the app from tab and then reopen. using flutter 3.10.6.

teoprayoga avatar Apr 13 '24 11:04 teoprayoga

Hi there, I have raised a fix for this issue. Please have a look : https://github.com/jiusanzhou/flutter_notification_listener/pull/46

Droyder7 avatar Apr 14 '24 15:04 Droyder7

Hi there, I have raised a fix for this issue. Please have a look : #46

image

Why, instead of deleting resources in the onDetachedFromEngine method, you do everything flutterJNI.attachToNative() ?

kalanchik avatar Jul 10 '24 08:07 kalanchik