You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.29.0, on macOS 15.0.1 24A348 darwin-arm64, locale en-IL)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0-rc4)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.96.0)
[✓] Connected device (5 available)
[✓] Network resources
• No issues found!
Mobile operating-system(s)
iOS
Android
Device Manufacturer(s) and Model(s)
All
Device operating-systems(s)
Android 14, Android 15
What happened?
The issue was first encountered by users and can be reproduced by repeatedly calling BackgroundGeolocation.startGeofences() and BackgroundGeolocation.stop()
The issue happens on 4.16.3 and doesn't happen on 4.16.2
There are 2 exceptions (both started on 4.16.3), one is non-fatal, and the other crashes the app.
The non-fatal exception is: E/TSLocationManager(13984): ‼️ Starting FGS with type location callerApp=ProcessRecord{5d4097b 13984:com.XXX.app/u0a432} targetSDK=35 requires permissions: all of the permissions allOf=true [android.permission.FOREGROUND_SERVICE_LOCATION] any of the permissions allOf=false [android.permission.ACCESS_COARSE_LOCATION, android.permission.ACCESS_FINE_LOCATION] and the app must be in the eligible state/exemptions to access the foreground only permissionjava.lang.SecurityException: Starting FGS with type location callerApp=ProcessRecord{5d4097b 13984:com.XXX.app/u0a432} targetSDK=35 requires permissions: all of the permissions allOf=true [android.permission.FOREGROUND_SERVICE_LOCATION] any of the permissions allOf=false [android.permission.ACCESS_COARSE_LOCATION, android.permission.ACCESS_FINE_LOCATION] and the app must be in the eligible state/exemptions to access the foreground only permission
The fatal exception is: E/TSLocationManager(13984): android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{dadca17 u0 com.XXX.app/com.transistorsoft.locationmanager.service.LocationRequestService c:com.XXX.app} E/TSLocationManager(13984): at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException(ActivityThread.java:2298) E/TSLocationManager(13984): at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2266) E/TSLocationManager(13984): at android.app.ActivityThread.-$$Nest$mthrowRemoteServiceException(Unknown Source:0) E/TSLocationManager(13984): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2640) E/TSLocationManager(13984): at android.os.Handler.dispatchMessage(Handler.java:109) E/TSLocationManager(13984): at android.os.Looper.loopOnce(Looper.java:232) E/TSLocationManager(13984): at android.os.Looper.loop(Looper.java:317) E/TSLocationManager(13984): at android.app.ActivityThread.main(ActivityThread.java:8787) E/TSLocationManager(13984): at java.lang.reflect.Method.invoke(Native Method) E/TSLocationManager(13984): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:591) E/TSLocationManager(13984): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:871)
Required Reading
Plugin Version
4.16.9
Flutter Doctor
Mobile operating-system(s)
Device Manufacturer(s) and Model(s)
All
Device operating-systems(s)
Android 14, Android 15
What happened?
The issue was first encountered by users and can be reproduced by repeatedly calling BackgroundGeolocation.startGeofences() and BackgroundGeolocation.stop()
The issue happens on 4.16.3 and doesn't happen on 4.16.2
There are 2 exceptions (both started on 4.16.3), one is non-fatal, and the other crashes the app.
The non-fatal exception is:
E/TSLocationManager(13984): ‼️ Starting FGS with type location callerApp=ProcessRecord{5d4097b 13984:com.XXX.app/u0a432} targetSDK=35 requires permissions: all of the permissions allOf=true [android.permission.FOREGROUND_SERVICE_LOCATION] any of the permissions allOf=false [android.permission.ACCESS_COARSE_LOCATION, android.permission.ACCESS_FINE_LOCATION] and the app must be in the eligible state/exemptions to access the foreground only permissionjava.lang.SecurityException: Starting FGS with type location callerApp=ProcessRecord{5d4097b 13984:com.XXX.app/u0a432} targetSDK=35 requires permissions: all of the permissions allOf=true [android.permission.FOREGROUND_SERVICE_LOCATION] any of the permissions allOf=false [android.permission.ACCESS_COARSE_LOCATION, android.permission.ACCESS_FINE_LOCATION] and the app must be in the eligible state/exemptions to access the foreground only permission
The fatal exception is:
E/TSLocationManager(13984): android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{dadca17 u0 com.XXX.app/com.transistorsoft.locationmanager.service.LocationRequestService c:com.XXX.app} E/TSLocationManager(13984): at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException(ActivityThread.java:2298) E/TSLocationManager(13984): at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2266) E/TSLocationManager(13984): at android.app.ActivityThread.-$$Nest$mthrowRemoteServiceException(Unknown Source:0) E/TSLocationManager(13984): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2640) E/TSLocationManager(13984): at android.os.Handler.dispatchMessage(Handler.java:109) E/TSLocationManager(13984): at android.os.Looper.loopOnce(Looper.java:232) E/TSLocationManager(13984): at android.os.Looper.loop(Looper.java:317) E/TSLocationManager(13984): at android.app.ActivityThread.main(ActivityThread.java:8787) E/TSLocationManager(13984): at java.lang.reflect.Method.invoke(Native Method) E/TSLocationManager(13984): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:591) E/TSLocationManager(13984): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:871)
Plugin Code and/or Config
Relevant log output
The text was updated successfully, but these errors were encountered: