Almoullim / background_location

Flutter background location plugin for Android and iOS
https://pub.dev/packages/background_location
Other
224 stars 236 forks source link

Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: almoullim.com/background_location. Response ID: 0 #99

Closed savassuphan closed 1 year ago

savassuphan commented 3 years ago

Hello everyone, I am getting the following error, does anyone know the reason and solution?

Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: almoullim.com/background_location. Response ID: 0

Almoullim commented 3 years ago

Can you try using version 0.6.0 and see if you still get the error. Just wanna see if its caused by the last update.

pflee2002 commented 3 years ago

This is a repeatable issue. I tried 0.6.0 and 0.6.1. The same error was reported. Please help fixed.

pflee2002 commented 3 years ago

The problematic function is the streamsubscription. The listen() does not work.

  _bg_geolocationSubscritption = BackgroundLocation()
      .getCurrentLocation()
      .asStream()
      .listen((Location position)......
MoralCode commented 1 year ago

this appears to be a duplicate of https://github.com/Almoullim/background_location/issues/25