-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
events such as onGeofence, onLocation, and onMotionChange not getting triggered sometimes in alive state and never triggers in killed state in both Android and iOS. #1088
Comments
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? |
stopOnTerminate: false. Don’t disable wifi on device. Always ensure |
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.
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 (
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
The text was updated successfully, but these errors were encountered: