Fetching location in background on iOS #823
Unanswered
simplylizz
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi . did you solve that problem or not yet ?? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm trying to get background updates of location and send them to my server, so I used a code like this:
I deployed an app to my phone to test it and now I see that it usually sends updates only within short time after I close it. After that it barely sends any info to the server. E.g. 2 last days it was just 1 update per day, today when I opened the app it was sending updates within ~30 mins after closure, but since then it stopped and there is nothing happening within ~2 hours.
Also, I don't need to get these updates too often, once per 5-10 mins would be ideally. Currently I check time of the last update in my
sendGeo
function, but before I was also experimenting withinterval
settings, can't say that I see much difference.My question is: is this really the best I can get with iOS?
P.S. Just in case, I'm running the app on iPhone 13 Pro, iOS 16.3.1.
Beta Was this translation helpful? Give feedback.
All reactions