Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rerequest permission once denied by user

Users can post messages on Facebook using my application. iOS presents the users with the permission dialogue the first time they try to post ("foo app would like to post privately on your behalf" - Don't Allow / OK). Now it seems that this decision is a persisting one. Once this dialogue is completed either way, the user will never be asked again.

Now, as this might have happened out of mistake I don't think this is good enough for the user. Is there a way to initiate this permission dialogue from code somehow?

like image 734
Janos Avatar asked Jan 05 '14 14:01

Janos


People also ask

How do you ask permission runtime again if the user deny for the first time?

Request permissions If the permission is not granted, we need to ask for permission to access certain features like camera, storage, etc. To ask permission, we need to use ActivityCompat. requestPermission() method with the permission name and the request code.

How do I get rid of don't ask again permission on Android?

You can "forget" it by clearing the data from app's settings. EDIT: As @me_ pointed out, just clearing app data may not reset the "don't ask again" condition in some devices. In such cases manually turning on and then turning off the permissions from app's settings will do the trick.

How can I tell if an Android user is denied permission?

The method shouldShowRequestPermissionRationale() can be used to check whether the user selected the 'never asked again' option and denied the permission.


1 Answers

No. You can create your own dialog telling the user that they must go to the Settings app to change the privacy settings.

like image 112
Wain Avatar answered Sep 29 '22 02:09

Wain