Notification from Background Geofencing in iOS 5?

后端 未结 1 1385
悲哀的现实
悲哀的现实 2021-01-14 21:26

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条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-14 21:43

    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)

    0 讨论(0)
提交回复
热议问题