JulianAssmann / flutter_background

A flutter plugin to keep apps running in the background via foreground services. Android only.
https://pub.dev/packages/flutter_background
MIT License
88 stars 51 forks source link

App crash after some time without any reason #51

Open UbaidBodla opened 2 years ago

UbaidBodla commented 2 years ago

App crash after some time (after 2,3 minutes )don't know why after screen lock basically, I want to send msg by the telegram bot when I found a notification from a certain app and it always remains in the background. My project is here https://github.com/UbaidBodla/bot_project

EXCEPTION I am facing is: image

Maybe I am using it in the wrong way. Thanks

Ignore my English

UbaidBodla commented 2 years ago

here is the error

image

UbaidBodla commented 2 years ago

@JulianAssmann Please help me.

Maney Time it send an EXCEPTION like

Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: notifications. Response ID: 299 W/FlutterJNI( 5389): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: notifications. Response ID: 293

Didn't know why?

JulianAssmann commented 2 years ago

On which phone did you test this on?