I really need some help. I have been going back and forth with a customer of mine for weeks. Our app is supposed to track location in the background after a user starts it in the foreground. Every time I test it, it works. I can put the app in the background and walk around for hours. Every time he tests it, it doesn't work. He puts the app into the background and about a minute later, it stops tracking him. Then it starts again when the app comes back to the foreground.
We have each tried it on two devices with the same results.
I'm willing to post the rest of the details if anyone is interested in helping me, but the last couple of times I got no response, so I'm not going to bother unless I can get some help this time. Thanks.
I'm willing to post the rest of the details if anyone is interested in helping me, but the last couple of times I got no response, so I'm not going to bother unless I can get some help this time. Thanks.
I think that's the next step here, as this really depends on exactly what API you're using and the details of how it's configured. However, a few points off the top of my head:
-
Make sure you're testing without being attached to Xcode. Xcode disables normal app suspension (so the debugger can work) and that completely bypasses the systems normal background execution model.
-
Make sure he's properly authorized the app.
__
Kevin Elliott
DTS Engineer, CoreOS/Hardware