-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
requestLocationAuthorization successcallback triggers too early #185
Comments
Please provide some more information:
|
Cordova 6.5.0 |
I'm unable to reproduce your issue running the example project in the iOS 10.2 Simulator - see this screencast. Please try building and running the example project and confirm if you get the same result. |
Thanks for the screencast. IOS Platform 4.3.1 btw. Sorry, I don't have the opportunity to run the example project this week. |
Notify with details if still an issue and I will reopen |
This is still an issue (encountered myself), however I've found a way to resolve it. If you use This is my (very sloppy) patch for a demo I was working on: https://gist.github.com/0x62/56d6b70aec2d832cf35e4ed01892a590 |
Will look into it |
I've only debugged on iOS, so not sure whether the issue is the same for Android.
|
@0x62 Thanks for your explanation of the issue - I was able to reproduce it and have fixed it in the above commit, published to npm as v3.6.3. |
cordova.plugins.diagnostic.requestLocationAuthorization(successCallback, errorCallback, mode);
The successcallback triggers too early, resulting in "status" in always "not determined", instead of the user's choice.
The text was updated successfully, but these errors were encountered: