Flucadetena / pedometer_2

BSD 3-Clause "New" or "Revised" License
4 stars 5 forks source link

Flutter JNI in Flutter background #7

Open mhmd435 opened 1 week ago

mhmd435 commented 1 week ago

W/FlutterJNI(20048): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: step_count. Response ID: 202

im using this plugin with flutter_foreground_task to gather the user step in background when app is terminated but there is an error when app open again

Flucadetena commented 1 week ago

Hi @mhmd435 I have not tested it in the background. Not sure it works. I'll look into it this week to see if I can make it work.

If you find a way and can contribute, it would be more than welcomed.

Are you trying in Android, IOS or both?

mhmd435 commented 1 week ago

I used this package on both platforms According to my research, it was for using singelton in method channel instance i dont know btw