Time based GPS location in background (iphone)

后端 未结 3 1856
没有蜡笔的小新
没有蜡笔的小新 2021-01-15 19:05

I want to create an (game based) iPhone application which sends your GPS location on a specific time (like 3-5 times a day) to a server. I found an apple page explaining som

3条回答
  •  粉色の甜心
    2021-01-15 19:39

    You can't "schedule background work". iOS doesn't allow it.

    The solution is to set yourself up for notification on significant change (which is some hit to the battery, but it's not horrible), and then only DO anything with that at occasional intervals.

提交回复
热议问题