Update user's location in background (iOS)

瘦欲@ 提交于 2019-12-12 03:54:39

问题


I'm building an app that takes the user's location and checks if he's near one of his friend's house (all the friends addresses are stored in NSMutableArray from his contact list), if he is, it sends him a push notification.

Now, I'm trying to figure out how I can get the user's location when the app is in the background (and even after the user killed the app from the multitasking screen).

I need to analyze his location and check if he is near one of the addresses on the array.

Does anybody know how can I get the location? Thanks!

来源:https://stackoverflow.com/questions/34653129/update-users-location-in-background-ios

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