Yukams / background_locator_fixed

A Flutter plugin for updating location in background.
MIT License
50 stars 102 forks source link

app is crashing: yukams.app.background_locator_2.BackgroundLocatorPlugin$Companion.stopIsolateService #130

Open m1lmo opened 2 months ago

m1lmo commented 2 months ago

Hello i get this error from google play console

affected user are 5 on Android 13 (SDK 33) and 147 on Android 14 (SDK 34)

This error accoured on above this device

Type: android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException

Exception android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException (ActivityThread.java:2145) at android.app.ActivityThread.throwRemoteServiceException (ActivityThread.java:2116) at android.app.ActivityThread.-$$Nest$mthrowRemoteServiceException at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2410) at android.os.Handler.dispatchMessage (Handler.java:106) at android.os.Looper.loopOnce (Looper.java:205) at android.os.Looper.loop (Looper.java:294) at android.app.ActivityThread.main (ActivityThread.java:8225) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:573) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1049) Caused by android.app.StackTrace: Last startServiceCommon() call for this service was made here at android.app.ContextImpl.startServiceCommon (ContextImpl.java:1952) at android.app.ContextImpl.startForegroundService (ContextImpl.java:1906) at android.content.ContextWrapper.startForegroundService (ContextWrapper.java:830) at androidx.core.content.ContextCompat$Api26Impl.startForegroundService (ContextCompat.java:1128) at androidx.core.content.ContextCompat.startForegroundService (ContextCompat.java:700) at yukams.app.background_locator_2.BackgroundLocatorPlugin$Companion.stopIsolateService (BackgroundLocatorPlugin.kt:142) at yukams.app.background_locator_2.BackgroundLocatorPlugin$Companion.unRegisterPlugin (BackgroundLocatorPlugin.kt:163) at yukams.app.background_locator_2.BackgroundLocatorPlugin$Companion.access$unRegisterPlugin (BackgroundLocatorPlugin.kt:30) at yukams.app.background_locator_2.BackgroundLocatorPlugin.onMethodCall (BackgroundLocatorPlugin.kt:249) at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage (MethodChannel.java:267) at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler (DartMessenger.java:292) at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger (DartMessenger.java:319) at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run at android.os.Handler.handleCallback (Handler.java:958) at android.os.Handler.dispatchMessage (Handler.java:99)