3

我不确定Apple是否允许这样做。我可以制作一个使用地理围栏的应用程序来跟踪您在地理围栏位置内的时间以及离开的时间吗?

我知道我可以创建提醒应用程序之类的警报,但是如何将这些警报反馈到我的应用程序中,以便查看我在地理围栏中的时间?

谢谢

4

2 回答 2

3

Your app can be notified when the user enters or leaves an area you designate. Read about Location Services. You can't/shouldn't try to do much when you get such a notification, though -- just save the information. Don't try to send messages to a server or something like that -- save that for when your app is in the foreground.

于 2012-10-02T02:29:15.107 回答
0

可以触发地理围栏事件,应用程序的回调代码片段不仅可以在后台执行,甚至可以在应用程序完全停止时的终止状态执行。

于 2017-05-01T02:16:21.583 回答