permission icon indicating copy to clipboard operation
permission copied to clipboard

Permission status is notAgain even on first lauch

Open harshapulikollu opened this issue 5 years ago • 10 comments

I'm testing the permissions on new device but also my permission status went into notAgain. It should be allow such that I can ask permissions from user. How to cope up with that.! What's the reason that cause permission status to be notAgain

harshapulikollu avatar Feb 20 '19 06:02 harshapulikollu

When the user chooses not again, you should prompt the user Permission.openSettings.

once10301 avatar Jun 05 '19 03:06 once10301

It even not showing permission dialog for user to press not again or allow or deny, just on first launch logger prints that permission already went into not again state.

harshapulikollu avatar Jun 06 '19 09:06 harshapulikollu

please @once10301 fix this, im having the same issue... for me it ONLY happen in RELEASE mode

b-cancel avatar Jul 20 '19 07:07 b-cancel

BTW @once10301 in my case I can easily detect notAgain and then open app settings... HOWEVER... in my app settings the permission I requested does not show up as an option for the user to turn on... eventhough I have the permission in all of my adroidmanifest.xml files... both in the debug and the release version... Help would be very much appreciated since this has stopped my progression for days and frankly i can't find any way out except simply writing the plugin myself

b-cancel avatar Jul 20 '19 19:07 b-cancel

@harshapulikollu On first lauch you should requestPermissions and then handle the latter things based on the returned results.

once10301 avatar Jul 21 '19 05:07 once10301

Yeah , I know that. But my question is how come permission status is NotAgain or NoAgain even when user haven't denied requested permissions?

harshapulikollu avatar Jul 21 '19 12:07 harshapulikollu

if you do not have requests, ContextCompat.checkSelfPermission(registrar.activity(), permission) == PackageManager.PERMISSION_DENIED && ActivityCompat.shouldShowRequestPermissionRationale(activity, permission) == false, this is the same as NotAgain

once10301 avatar Jul 21 '19 13:07 once10301

@once10301 thanks for the explanation

Although it would be nice to get this in the documentation or perhaps edit your code a bit so that whoever is using your plugin does not have to worry about this detail

b-cancel avatar Jul 21 '19 22:07 b-cancel

Had the same issue. Some docs with this would be greatly appreciated.

lifenautjoe avatar Nov 01 '19 11:11 lifenautjoe

Have the same issue @once10301, permission status is notAgain by default, is this issue fixed in 0.1.7?

iamsureshsharma avatar Sep 10 '20 05:09 iamsureshsharma