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

Requesting "always" permission when user has previously selected "whenInUse" causes request to hang (promise never resolves) (deprecate this library) #191

Open
iway1 opened this issue Apr 13, 2022 · 2 comments

Comments

@iway1
Copy link

iway1 commented Apr 13, 2022

Since iOS 13 apps are only allowed to request location permission a single time. If a user has previously selected to share location when in use, the ios code will attempt to ask for always permission even though it's impossible to ask for permissions a second time.

SO, the promise never resolves. In my case, my app froze forever because I am performing a location services check and waiting for it to resolve before navigating the user to the main screen of the app.

Pretty clear that this library isn't being actively maintained. If it's not going to be fixed, then please for the love of god update the read me to point out that this library doesn't work properly with iOS 13+ and that it's not being maintained and that it should not be used.

@iway1 iway1 changed the title Requesting "always" permission when user has previously selected "whenInUse" causes request to hang (promise never resolves) or deprecate this library Requesting "always" permission when user has previously selected "whenInUse" causes request to hang (promise never resolves) (deprecate this library) Apr 13, 2022
@NaitikDartexon
Copy link

Same in my case this heppens in android after give the allow location permission when i put the apk in background and open again second time it ask for the location, some time while i close the application and open at that time still it ask for permission. after second time permission can see the location pop-up

@NaitikDartexon
Copy link

  android: {
    detail: 'fine'
  }
  
  i added this for request permission now it can't ask twice permission pop-up for me

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

2 participants