简体   繁体   English

ios 8后台服务在15到20分钟后结束

[英]ios 8 background service ends after 15 to 20 mins

IOS 8 stops background call after 15 min. IOS 8在15分钟后停止后台通话。

I am using background service to send gps to service every 2 mins. 我正在使用后台服务每2分钟将gps发送到服务。 app sending data properly for 15 min after that its stops sending data. 应用停止正常发送数据后的15分钟。 this happens only in ipad mini, in rest of ipad its working fine, data going properly eben for 8 hours. 这种情况仅发生在ipad mini上,在ipad的其余部分正常工作,数据正常运行了8个小时。

iOS 8 background service ends after 15 to 20 mins. iOS 8后台服务在15到20分钟后结束。 I am testing in iPad mini, but its working fine in normal iPad, I had enabled background app refresh, and everything fine. 我正在iPad mini上进行测试,但是在普通iPad上可以正常使用,我启用了后台应用刷新功能,并且一切正常。 but its not working after 20 min, but same code working fine in other device except iPad mini, I am using iPad mini cellular ? 但是20分钟后无法正常工作,但是相同的代码在iPad mini以外的其他设备上也可以正常工作,我使用的是iPad mini蜂窝电话吗? kindly help me out. 请帮助我。

The usual cause for this is an app crash. 造成这种情况的常见原因是应用崩溃。 I had it happen when my background refresh ran over the allowed 30 seconds. 当我的背景刷新时间超过允许的30秒时,我发生了这种情况。 Then the app appears to still be running when you reactivate it, but in fact it's restarted. 然后,当您重新激活该应用程序时,它似乎仍在运行,但实际上它已重新启动。

Check the device logs and see if you've had crashes like this. 检查设备日志,看看是否发生了这样的崩溃。 Given the date, you probably already solved your problem. 给定日期,您可能已经解决了问题。

Also remember that iOS calls for BG refresh when it wants, and it's very idiosyncratic. 还请记住,iOS需要在需要时刷新BG,这非常特殊。

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

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