Open poorvasha-pss opened 1 year ago
Thank you Christocracy, we will take a look into it, it seems that there is no solution provided for iOS in dontkillmyapp.com site. is there any other thing we need to do for iOS to work in the terminated state?
to do for iOS to work in the terminated state?
stopOnTerminate: false. Don’t disable wifi on device. Always ensure .ready(config)
is executed each time app is launched.
Thank you, we will try and let you know
Hi Christocracy, some of the devices were not listed in the https://dontkillmyapp.com/ such as TECNO-AC8, and also on some other device even if we followed the instruction given in the https://dontkillmyapp.com/ still the geofence event is not getting triggered sometimes. Is there anything that you are triggering the events based on the speed per second?
There is nothing that can be done to forcibly evaluate / fire geofences. Geofences are managed purely by the OS.
Okay, Thank you Christ, some of the devices were not listed in the https://dontkillmyapp.com/ such as TECNO-AC8, is there anything that we can do to fix it? and also is there any possible to the give geofence radius below 200 ?
They are probably not listed because they’re not popular.
any possible to the give geofence radius below 200 ?
NO.
Sometimes even if we followed the instruction given in the https://dontkillmyapp.com/ still the geofence event is not getting triggered in terminated state. Can you please help us to identify the issue of the inconsistent event triggering or there is issue with the background process?
Some devices just don’t work properly. It’s the fault of the manufacturer.
there is nothing I can do. I implement the Geofencing api according to public Android API docs. Geofences are managed purely by the OS.
I regularly field test on the following devices. Geofences don’t fail.
I suggest you test my demo app from play store. It’s linked in the readme.
you can add geofences by long-pressing on the map (in the Advanced App).
Also, don’t test geofences in emulator / mock location app. Test outdoors with real movement.
Thanks for the Details
Your Environment
Plugin version: 4.11.1
Platform: iOS and Android
OS version: Androi(12) adn iOS(16.4)
Device manufacturer / model: Android (Redmi Note 10 (13.0.4)) and iOS (iPhone XR)
Flutter info (![image](https://github.com/transistorsoft/flutter_background_geolocation/assets/132580413/9c73baa2-00b8-4461-b911-0b4662d09682)
flutter doctor
):Plugin config:
Expected Behavior
The _onGeofence event should trigger whenever user enter or exit the geofence radius in both app alive and killed state
Actual Behavior
we have added the backgroundGeolocationHeadlessTask and registered that in main.dart and also configured _configureBackgroundFetch()
Steps to Reproduce
Context
We are trying to auto logging in user based on the given geofence radius, if user enter the given geofence radius we will be sending local notification that "you have entered the location" and we will do an api call to add timelog in Database, if user exit, as same as enter.
Debug logs
Logs
``` PASTE_YOUR_LOGS_HERE ```