Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Toggling Privacy settings will kill the app

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:

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

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?

like image 340
rocky Avatar asked Sep 20 '12 23:09

rocky


People also ask

How do I change Privacy settings on apps?

Go to the Settings Section, it looks like a cog. There you should see a section called Privacy. You can also change these setting through Apps and Notifications. Here you can decide what apps have access to – things like your messages, photos and location.

How do I change the Privacy settings on my Iphone apps?

Go to Settings > Privacy, then tap App Privacy Report (iOS 15.2 or later). The App Privacy Report shows you how apps are using the permissions you granted them and shows you their network activity.

How do I turn on Apple App Privacy?

Turn on App Privacy ReportIn Settings, tap Privacy. Scroll to and tap App Privacy Report. Tap Turn on App Privacy Report.


1 Answers

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

  • If permissions changes, app is quit.
  • Background task expiration handler is called, if registered
  • iOS then kills the application.

WWDC 2012 Session Videos: Privacy Support in iOS and OS X

Expiration handler: beginBackgroundTaskWithExpirationHandler

There is no way around this I can see.

like image 83
amleszk Avatar answered Oct 23 '22 21:10

amleszk