在我的iPhone 4和iPhone 5中,我有一个在后台模式下正常工作的应用程序,我还在xcode模拟器(iOS 9.1)上测试了它。在后台模式下,我接收位置通知并将它们推送到服务器。不过,我现在正在iPad (4th generation) Wi-Fi + Cellular (MM) A1460
上测试它,当应用程序进入后台模式时,它将停止接收通知并向我的服务器发送请求。
你知道为什么它在后台不起作用吗?
发布于 2015-10-27 18:10:38
我通过设置
locationManager.allowsBackgroundLocationUpdates = YES;
https://stackoverflow.com/questions/33373050
复制相似问题