rekabhq/background_locator

Background crashes on Android when the app stays in background

Habil24 opened this issue · 3 comments

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)

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

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.

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