background_locator icon indicating copy to clipboard operation
background_locator copied to clipboard

Service stop sending location when power off the screen

Open JavierConde opened this issue 3 years ago • 2 comments

Hello, great plugin and work.

I was testing it a few days and i'm using to test an android 10 (samsung a10) and a huawei android 9 and a samsung s20 with android 11

After a while, 1 hour from i just power off the screen the service stop send locations. I configured the application to be whitelited, i give permission, etc, restarted the phone after install the apk, but still stop working. I also configured the wakeLockTime: 3600, to see if this do something or not.

What i can send you or see to know what's the problem is?

thanks

JavierConde avatar Mar 31 '21 16:03 JavierConde

Hi @JavierConde Thank you for opening an issue.

Are you using the latest version of the plugin? We had a similar issue with the previous version; Please take a look at #169 and let me know if that's your problem;

mehdok avatar Mar 31 '21 20:03 mehdok

Hello Mehdi! thanks for your contact. I'm using background_locator: ^1.5.0+1 Right now i'm testing on Android, i didn't test yet on iOS

Huawei MRD-LX3 android 9 Huawei DRA-LX3 android 8 Samsung A10 SM-A105M android 10 Samsung S20 android 11 Samsung j2 SM-G532M android 6

in all the same issue, after a while, 60 minutes in the most cases, the service stop calling the callback, i'm sending the data to a server (localhost) via wifi, to avoid problems with the internet etc.

In the application, i used the request permission to whitelist the app and configure manually the huawei and samsung, sometimes they have an app to optimize auotm. the resources to save bat and kill the service or the app.

If you want, we can work in a private repo to see what are the best practices to see what we can do.

Thanks!

JavierConde avatar Mar 31 '21 20:03 JavierConde