Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission status is notAgain even on first lauch #19

Open
harshapulikollu opened this issue Feb 20, 2019 · 10 comments
Open

Permission status is notAgain even on first lauch #19

harshapulikollu opened this issue Feb 20, 2019 · 10 comments

Comments

@harshapulikollu
Copy link

harshapulikollu commented Feb 20, 2019

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 harshapulikollu changed the title Permission status is noAgain even on first lauch Permission status is notAgain even on first lauch Feb 21, 2019
@once10301
Copy link
Owner

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

@once10301 once10301 added the waiting for customer response waiting for customer response label Jun 5, 2019
@harshapulikollu
Copy link
Author

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.

@b-cancel
Copy link

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

@b-cancel
Copy link

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

@once10301
Copy link
Owner

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

@once10301 once10301 removed the waiting for customer response waiting for customer response label Jul 21, 2019
@harshapulikollu
Copy link
Author

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

@once10301
Copy link
Owner

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

@b-cancel
Copy link

@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

@lifenautjoe
Copy link

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

@iamsureshsharma
Copy link

iamsureshsharma commented Sep 10, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants