rekabhq / background_locator

A Flutter plugin for updating location in background.
MIT License
287 stars 321 forks source link

Background crashes on Android when the app stays in background #319

Open Habil24 opened 2 years ago

Habil24 commented 2 years ago

Hi, we are getting repetitive crashes in firebase analytics in our app with the error below. It does not happen on iOS, however, it happens frequently on Android. The issue is hard to reproduce. Usually, after its state changes to the background and a few hours pass (1.5-4 hours) the app crashes in the background. I would really appreciate any help or feedback about this issue because it exists for a couple of months on our app.


Fatal Exception: java.lang.UnsatisfiedLinkError
No implementation found for io.flutter.view.FlutterCallbackInformation io.flutter.embedding.engine.FlutterJNI.nativeLookupCallbackInformation(long) (tried Java_io_flutter_embedding_engine_FlutterJNI_nativeLookupCallbackInformation and Java_io_flutter_embedding_engine_FlutterJNI_nativeLookupCallbackInformation__J)
io.flutter.embedding.engine.FlutterJNI.nativeLookupCallbackInformation (FlutterJNI.java)
io.flutter.view.FlutterCallbackInformation.lookupCallbackInformation (FlutterCallbackInformation.java:28)
rekab.app.background_locator.IsolateHolderExtensionKt.startLocatorService (IsolateHolderExtension.kt:26)
rekab.app.background_locator.IsolateHolderService.onCreate (IsolateHolderService.kt:64)
android.app.ActivityThread.handleCreateService (ActivityThread.java:4936)
android.app.ActivityThread.access$1900 (ActivityThread.java:310)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:2296)
android.os.Handler.dispatchMessage (Handler.java:106)
android.os.Looper.loopOnce (Looper.java:226)
saravananmnm commented 2 years ago

This issue exists all version of background locator. Why this issue has not resolved yet?

Habil24 commented 2 years ago

This issue exists all version of background locator. Why this issue has not resolved yet?

There is an opened pull request regarding this. However, the issue persists.

Yukams commented 2 years ago

If someone still has the problem, you could try my fork, maybe it would work.