Comments (13)
try this link: https://dontkillmyapp.com/. I encountered this issue on Android 10 after following the link, and everything works fine.
from background_locator_fixed.
You can change wakelock time in settings, the default is 60 minutes
from background_locator_fixed.
Hi Mohammed,
Thank you for your suggestion, I will try it.
The only drawback to increase it to theoretical 'infinity' is battery consumption? Is there any other consideration that I should look for?
Thank you
Best regards
from background_locator_fixed.
I changed it to 24*60, and it still gets deactivated after a while. It is usually a bit less than 1 hour so it may not be the issue?
Any idea?
Is there any way I can get some log output that could give some clue to follow?
Thank you once again
from background_locator_fixed.
This is what I have actually. Does anyone have an idea?
I am sorry if I am being insistent but maybe this is an issue more people will have.
Thank you for any idea, even if it is 'obvious' to you.
await BackgroundLocator.registerLocationUpdate(
LocationCallbackHandler.callback,
initCallback: LocationCallbackHandler.initCallback,
initDataCallback: data,
disposeCallback: LocationCallbackHandler.disposeCallback,
iosSettings: const IOSSettings(
accuracy: LocationAccuracy.NAVIGATION,
distanceFilter: 0,
stopWithTerminate: true),
autoStop: false,
androidSettings: const AndroidSettings(
wakeLockTime: 24*60,
accuracy: LocationAccuracy.NAVIGATION,
interval: 10,
distanceFilter: 20,
client: LocationClient.google,
androidNotificationSettings: AndroidNotificationSettings(
notificationChannelName: 'Location tracking',
notificationTitle: 'Tacógrafo: monitor de localização',
notificationMsg: 'Monitorização de localização em background',
notificationBigMsg:'Ajuda a lembrar de potenciais alterações de estado do tacógrafo.',
notificationIconColor: Colors.grey,
notificationTapCallback: LocationCallbackHandler.notificationCallback)))
from background_locator_fixed.
Hi, please try this library to disable battery optimizations for the app
https://pub.dev/packages/disable_battery_optimization/example
from background_locator_fixed.
Hi again,
I am really sorry but it still doesn't work.
Do you have some more shot I can try?
Is there any way to get the exit reason for these background processes somewhere on Android, like some log or similar?
Thank you very much
from background_locator_fixed.
Actually i am having the issue but it reduces when i disable battery optimizations , I don't know more about it sorry
from background_locator_fixed.
Did you notice that the issue also happened to you after my question or you always had it (or maybe didnt need it before)?
Thanks
from background_locator_fixed.
It's happens before you asking
from background_locator_fixed.
Has anyone found a solution for this? i am facing same issue.
from background_locator_fixed.
Has anyone found a solution for this? i am facing same issue.
No, I still would like to know.
from background_locator_fixed.
Ohh, I am also facing the same issue but for android>10...for android <=10 it is working fine
from background_locator_fixed.
Related Issues (20)
- A problem occurred configuring project ':background_locator_2'.
- [IOS] Background Location Update does not work in real device after App termination HOT 5
- No option to hide notification
- [iOS] Multiple calls on first run
- It doesn't call initCallback HOT 2
- Option not to stay active in the background
- Turn off Location Notification
- 'GLobals.h' file not found
- App being crashed: yukams.app.background_locator_2.IsolateHolderService.getNotification HOT 4
- Android 14 HOT 4
- Is it still maintained? HOT 2
- Not work on testflight
- WakeLockTime=0, How can i do this?
- Example app doesn't work HOT 2
- Null check operator error
- Looking for Maintainers HOT 1
- support for gradle 8
- FOREGROUND_SERVICE_LOCATION(Android 14)
- Killed APP background service stoped
- app is crashing: yukams.app.background_locator_2.BackgroundLocatorPlugin$Companion.stopIsolateService
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from background_locator_fixed.