Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In IOS6 Simulator ABAddressBookGetAuthorizationStatus() always returns kABAuthorizationStatusAuthorized

This is the same question as ABAddressBookGetAuthorizationStatus in simulator always returns kABAuthorizationStatusAuthorized but that answer did not work for me and I don't have enough reputation to comment on that thread :(

In the IOS6 Simulator ABAddressBookGetAuthorizationStatus() always returns kABAuthorizationStatusAuthorized. I am looking for a way to "reset" the simulator so I can get it to ask the user " I've tried resetting with

  1. "Reset Location & Privacy" within Setting->General->Reset and
  2. reset then entire simulator from the OSX menu IOS Simulator->Reset Content and Settings

I still always get authorized

if (ABAddressBookGetAuthorizationStatus() == kABAuthorizationStatusAuthorized)
    // I get in here every time
else
    // I NEVER get here, but I should
like image 479
alexrothenberg Avatar asked Dec 13 '25 19:12

alexrothenberg


1 Answers

Seems like simulator always returns granted, so no permission request is needed, and reseting wouldn't help either.

On real devices you can first get "Not Determined", and then a permanent "Denied" or "Authorized", until the user goes to Settings > general > reset > reset location & privacy.

like image 90
marmor Avatar answered Dec 16 '25 23:12

marmor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!