Foursquare iPhone 应用程序获取我的位置并向我发送通知,即使它不在后台工作。这怎么可能?
最佳答案
查看该方法的文档startMonitoringSignificantLocationChanges
类(class)CLLocationManager
.它说:
If you start this service and your application is subsequently terminated, the system automatically relaunches the application into the background if a new event arrives.
这意味着应用程序即使被终止也会收到通知。
关于iphone - 当 iPhone 应用程序后台不工作时是否可以获取位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9892405/