transistorsoft / flutter_background_geolocation

Sophisticated, battery-conscious background-geolocation & geofencing with motion-detection
https://www.transistorsoft.com/shop/products/flutter-background-geolocation
Other
652 stars 240 forks source link

In background mode on iOS, plugin freeze the app #1388

Open kukareku0307 opened 9 hours ago

kukareku0307 commented 9 hours ago

Your Environment


## Expected Behavior
<!--- Tell us what should happen -->
When I turn off the application, the plugin turns on in the background and works as it should, it turns on and off by the system when necessary.

## Actual Behavior
<!--- Tell us what happens instead -->
When I force quit the application, the plugin turns on in the background and works as it should, it turns on and off by the system when necessary, BUT after some time, I can assume that iOS turns off the application as unnecessary in the background and after a while, due to a small movement, the plugin tries to turn on and writes in the debug notification: "Authorization status changed 3" and that's it, after this happens, if I enter the app then it just freezes on the splash screen and nothing happens. It doesn't happen often, but it does.

## Steps to Reproduce
<!--- reproduce this issue; include code to reproduce, if relevant -->
1. 
2. 
3. 
4.

## Context
<!--- What were you trying to do? -->

## Debug logs
<!-- include iOS / Android logs
- ios XCode logs,
- use #getLog #emailLog methods (@see docs)
- Android: $ adb logcat -s TSLocationManager
-->
<details>
    <summary>Logs</summary>

``` <!-- syntax-highligting:  DO NOT REMOVE -->
PASTE_YOUR_LOGS_HERE

christocracy commented 7 hours ago

See wiki “Debugging”. Use LOG_LEVEL_VERBOSE. Learn to fetch logs using method .emailLog.

I have never experienced this behaviour with the /example app in this repo. I field-test almost every day for years.