切换隐私设置将终止应用程序 [英] Toggling Privacy settings will kill the app

查看:287
本文介绍了切换隐私设置将终止应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用iPhone联系人的应用程序。使用iOS 6,第一次尝试时将提示用户进行联系访问。此时,用户可以点击允许或不允许。问题是当用户为应用程序提供背景,然后导航到设置 - >隐私 - >联系人以切换我的应用程序的联系人隐私设置。切换后,我可以在控制台上看到我的应用程序:

I have an app that uses the iPhone's contacts. With iOS 6, the user will be prompted for Contact access on the first try. At this point, the user can hit 'Allow' or 'Don't Allow'. The problem is when the user backgrounds the app, and then navigates to Settings->Privacy->Contacts to toggle the Contact privacy setting for my app. Once it is toggled, I can see on the console that my app:


应用程序'UIKitApplication:com.myApp'异常退出信号9 :已杀:9

Application 'UIKitApplication:com.myApp' exited abnormally with signal 9: Killed: 9

我在Apple的文档中找不到任何相关信息。有谁知道防止这种情况的方法?这是设计的吗?或者这是一个苹果虫?

I can't find any information on this in Apple's documentation. Does anyone know a way to prevent this? Is this as designed? Or is this an Apple bug?

推荐答案

操作系统发送的SIGKILL并非崩溃 - iOS6中关于隐私的Apple会话说:

the OS sends a SIGKILL which is not a crash - Apple session on privacy in iOS6 says:


  • 如果权限更改,应用程序将退出。

  • 调用后台任务到期处理程序,如果已注册

  • iOS则会终止该应用程序。

WWDC 2012会话视频:iOS和OS X中的隐私支持

到期处理程序:beginBackgroundTaskWithExpirationHandler

我无法看到这一点。

这篇关于切换隐私设置将终止应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆