Kevin Kelly
Kevin Kelly

Reputation: 79

How to prompt for CKApplicationPermissionUserDiscoverability again

Is there a way to get iOS to prompt for CKApplicationPermissionUserDiscoverability again after the user has declined it? The most I've been able to do is remove permission in the iCloud settings pane in OS X, which just returns a deny to the iOS app without any user interaction. The app I'm writing is useless without discoverability, so I want to be able to prompt again if the user initially says no.

Upvotes: 3

Views: 369

Answers (3)

Peter Robert
Peter Robert

Reputation: 1302

In iCloud dashboard, under deployment, reset the development environment, and the next time you install the app, it will prompt again for the permission.

Warning: resetting the development environment will delete all existing records AND it will reset the record definitions to what is deployed to the production environment. So if you haven't deployed to production environment yet you can loose all your record types and custom fields in Users. I recommend deploying to production even if it's not final, then resetting.

Upvotes: 1

drowa
drowa

Reputation: 732

On the iCloud settings of the iOS 8.1, under the iCloud Drive, there is an option called "Look Me Up By Email". There you will be able to reset the permission.

Upvotes: 3

Edwin Vermeer
Edwin Vermeer

Reputation: 13127

You can't reactivate the system prompt. What you can do is test for the permissions and if it's not ok supply your own prompt asking the user to go to the settings to change the permissions.

Upvotes: 0

Related Questions