Notification from Background Geofencing in iOS 5?

ε祈祈猫儿з 提交于 2019-12-30 11:21:34

问题


Is it currently possible to create an app that "reminds me when I get to work, Siri" right now ? Or the app needs to be running to apply geofencing ?


回答1:


Yes, it is possible by using the CLLocationManager's startMonitoringForRegion which will call your App when entered/left a certain "fenced" geo-area.

BUT since the user's location is/will be used, the location icon will appear for as long as this call has yet been canceled (by the matching stopMonitoringForRegion)

(on iOS6 this icon will be replaced with a different location icon for "regional" location instead of regular location use - looks like an outline of the current icon)



来源:https://stackoverflow.com/questions/8077691/notification-from-background-geofencing-in-ios-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!