Region monitoring in ios 7

被刻印的时光 ゝ 提交于 2019-11-29 05:03:12

This is now the expected behaviour starting with iOS7. In iOS6 and earlier, even if you manually killed the app from the app-switcher, you would still get a notification when the user entered/exited a region. This behaviour has changed with iOS7. If the user has killed the app from the app-switcher, i.e. by swiping up on your app, then they will no longer receive any location-based notifications, including region monitoring notifications. This was confirmed by an Apple Employee in the official Apple developer forums - link here.

The only solution provided by Apple Dev was "Please file bug reports if this change is problematic for you or you would like to see something different."

I personally think this was a terrible decision, as it defeats the purpose of background notifications. You will have to advise your users upgrading from iOS6, as they will continue to expect similar functionality and this change has not been documented anywhere.

EDIT: As @herz below has pointed out, starting in iOS 7.1, the background monitoring functionality has reverted to how it was in iOS 6. Regions will be monitored and your app will receive notifications even when it is killed from the app switcher.

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