简体   繁体   English

我的应用程序在iOS8上的“后台应用程序刷新”设置中消失了

[英]My app disappeared from “Background App Refresh” setting on iOS8

My app using iBeacon and GeoFence Services worked well in the background on iOS 7.1, but it didn't on iOS 8. So when I went to "Background App Refresh" setting to check my app, I realized it wasn't shown in the list. 我的应用程序使用iBeacon和GeoFence服务在iOS 7.1的后台运行良好,但它没有在iOS 8上。所以当我去“后台应用程序刷新”设置来检查我的应用程序时,我意识到它没有显示在名单。 I think that's y can't enable the background services. 我认为这是不能启用后台服务的。 Do I have to update my app to be compatible for iOS 8 about this point? 我是否必须更新我的应用程序才能兼容iOS 8? or is it just a iOS8 bug?? 或者它只是一个iOS8的bug? Anyone, please let me know. 有人,请告诉我。

I've found the solution! 我找到了解决方案! In project target settings, go to Capabilities (second tab), in Background modes (which should be ON) there's a mode called Background Fetch. 在项目目标设置中,转到功能(第二个选项卡),在后台模式(应该为ON)中有一个名为Background Fetch的模式。 If you check this mode, the app will appear in the Background Refresh list in phone settings. 如果您选中此模式,该应用程序将显示在手机设置的后台刷新列表中。 In iOS 7 the app was in the Background Refresh list if just "Location Services" background capability was checked, but it seems that it's not enough for iOS 8. Checking the "Background Fetch" (with or without "Location Services" capability) will fix this issue. 在iOS 7中,如果仅检查“位置服务”后台功能,则应用程序位于后台刷新列表中,但似乎对iOS 8来说还不够。检查“后台获取”(带或不带“位置服务”功能)将解决这个问题。 Edit 编辑

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

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