rekabhq / background_locator

A Flutter plugin for updating location in background.
MIT License
288 stars 329 forks source link

Gps NOT updated after not get GPS siginal for a long time( around 30 minutes) #207

Open function2000 opened 3 years ago

function2000 commented 3 years ago

I get one issue, when I am sitting in a building, and the Gps signal is very weak, long time not get GPS, around 30 minutes, then the GPS signal icon totally gone after that, and not start anymore. This is a problem, as if I am go outside, but the GPS does not resume. I don't know how to deal with it. By the way, I am also use Background_fetch plugin. I can triggle it in background_fetch again, but I hope it can be triggled by this plugin itself. Any advice is welcome. Thanks!

JeanRoldanDev commented 3 years ago

Use AlertManager

function2000 commented 3 years ago

Use AlertManager

Can you please give example? Many thanks!

mehdok commented 3 years ago

Hi @function2000 Thank you for opening an issue.

Please give every information that you can, eg. device type (Android, iOS), version of OS, location client config for android device (Google, Android) and any other information that you have.

function2000 commented 3 years ago

Hi @function2000 Thank you for opening an issue.

Please give every information that you can, eg. device type (Android, iOS), version of OS, location client config for android device (Google, Android) and any other information that you have.

Device type: XiaoMi 9 pro OS: MIUI 11, Android 9 Location client: Android androidSettings: AndroidSettings( accuracy: LocationAccuracy.BALANCED, interval: 60, //1 minute wakeLockTime:1440, //24hours distanceFilter: 0, client: LocationClient.android, androidNotificationSettings:

Thank you very much!

function2000 commented 3 years ago

I think this could be hardware issue, if no good answer, you can close this issue. Thank you anyway.

mehdok commented 3 years ago

This one is really a hard one because I have no idea what's wrong and it needs a lot of testing. I will keep it open for now to see if anybody else has this problem or maybe someone can add a bit more information.

function2000 commented 3 years ago

This one is really a hard one because I have no idea what's wrong and it needs a lot of testing. I will keep it open for now to see if anybody else has this problem or maybe someone can add a bit more information.

Thank you! Today I use another device, industry phone: Device brand: HONEYWELL CT60 OS: Android 8

I installed the release app on this device, and after asking GPS permission, it crashed, and ask for reopen app, then it never successful opened up. it crashed always.
I didn't find time to debug via cable line. Just give you this information. I know it maybe not easy for you to test it with industry phone. So please do not take it seriously, if you have any clue for this HONEYWELL CT60 case, please advise. Thank you very much!

JeanRoldanDev commented 3 years ago

the problem is not the service, the problem depends on each manufacturer xiami example you have to make your users disable the save options, the startup boot and accept the permission in the background