How to call CKApplicationPermissionUserDiscoverability again

Is there a way to get iOS to ask for CKApplicationPermissionUserDiscoverability again after the user has rejected it? The most I have been able to do is remove the permission in the iCloud settings panel in OS X, which just returns a denial in the iOS app without any user interaction. The application I am writing is useless without being discoverable, so I want to be able to query again if the user initially says no.

+3


source to share


3 answers


In the iCloud iOS 8.1 settings under iCloud Drive there is an option "Look Me Up By Email". There you should be able to reset the permission.



+3


source


You cannot reactivate the system request. What you can do is check the permissions and, if that's not okay, offer your own prompt, asking the user to go to settings to change the permissions.



0


source


In the iCloud panel, during the deployment process, reset the development environment, and the next time you launch the application, it will offer permission again.

Warning: Resetting the development environment will delete all existing entries. And will reset the record definitions in whatever is being deployed to production. Therefore, if you have not yet deployed a production environment, you may lose all of your record types and custom fields in Users. I recommend deploying to production, even if not final, and then reloading.

0


source







All Articles