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

Background Location permission issue #108

Open
ivinantony opened this issue May 12, 2022 · 5 comments
Open

Background Location permission issue #108

ivinantony opened this issue May 12, 2022 · 5 comments

Comments

@ivinantony
Copy link

when i request for the location permission it doesn’t show allow all the time in the popup. i have already added ACCESS_BACKGROUND_LOCATION in the manifest.

@zdevaty
Copy link

zdevaty commented Jun 28, 2022

On which version of Android are you testing? You have to get this permission from app settings since Android 11.

See the docs

@ivinantony
Copy link
Author

Do you have any idea to open the permission settings instead of app settings using this plugin??

@zdevaty
Copy link

zdevaty commented Jul 7, 2022

Try this:

permissions.requestPermission(permissions.ACCESS_BACKGROUND_LOCATION, success, error);

function error() {
  console.warn('ACCESS_BACKGROUND_LOCATION permission is not turned on');
}

function success( status ) {
  if( !status.hasPermission ) error();
}

@clarklight
Copy link

@zdevaty Why when i run the code you quoted it just returns ACCESS_BACKGROUND_LOCATION permission is not turned on? It does this to every single one of my request for permissions...

@zdevaty
Copy link

zdevaty commented Jun 6, 2023

Maybe this permission is rejected permanently in Android settings somehow?

I don't know and I can't help you, as I changed my career so I won't have to deal with Android background location problems ever again.

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

3 participants