简体   繁体   English

在后台快速更新用户位置

[英]updating the user location in the background swift

I'm working on an app and I need to notify the user when he leaves the place that he is in so I was able to get the user's current location but I couldn't use the location in the background after some search I found that I can update the location when the user move ! 我正在开发一个应用程序,当他离开该用户所在的位置时,我需要通知该用户,以便能够获取该用户的当前位置,但是经过一些搜索后,我无法在后台使用该位置当用户移动时,我可以更新位置! so is it really possible !? 真的有可能! and how can I do it ?! 我该怎么办?

You need to look at GeoFencing try this tutorial 您需要查看GeoFencing尝试本教程

http://www.raywenderlich.com/95014/geofencing-ios-swift http://www.raywenderlich.com/95014/geofencing-ios-swift

it will help.Thank you 会有所帮助。谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM