Time based GPS location in background (iphone)

后端 未结 3 1893
没有蜡笔的小新
没有蜡笔的小新 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:59

    It really depends on your usage of the location. If you monitor actively, kiss the battery of your user goodbye. Very detailed accuracy, even bigger hit to battery. The backgrounding of location is all or nothing as far as accuracy goes.

    Less hit, less accuracy is -startMonitoringForSignificantLocationChange. May not be accurate enough for you.

    Better depending on usage, region monitoring. Triggers event on entry or exit of defined region.

    You don't have the benefit of accuracy and timed location based events. You can do it, but is going to require a lot more effort on your end.

提交回复
热议问题