ios - How to ask for permission to access iphone contacts adressbook again? -


hello asking permission access contacts using code below.

    abaddressbookref addressbookref = abaddressbookcreatewithoptions(null, null);      if (abaddressbookgetauthorizationstatus() == kabauthorizationstatusnotdetermined) {         abaddressbookrequestaccesswithcompletion(addressbookref, ^(bool granted, cferrorref error) { } else if (abaddressbookgetauthorizationstatus() == kabauthorizationstatusauthorized)           {           }          else           {           } 

so far working if delete app , debug again app wont ask me permission again. prior if accepted or declined can see in privacy contacts , name of app whether on or off.

i want app ask me permission pop up. should restart device , reinstall app. anyway clear sort of cache?

any please?

you can reset privacy settings.

settings > general > reset > reset location & privacy.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -