Repository navigation
Conversation
RequestAccessAsync() => GeolocationAccessStatus.Allowed; is true only on API <23. RequestAccessAsync() should use src\Uno.UI\Extensions\PermissionsHelper.Android.cs src\Uno.UWP\Extensions\PermissionsHelper.cs but something is wrong, and dialog requesting permission is not displayed. So, this change is only half-way,
Contributor
Author
|
I cannot imagine any test for this PR... |
MatFillion
reviewed
Nov 1, 2019
| } | ||
|
|
||
| // check if permission is granted | ||
| if (Android.Support.V4.Content.ContextCompat.CheckSelfPermission(Uno.UI.ContextHelper.Current, Android.Manifest.Permission.AccessFineLocation) |
Contributor
There was a problem hiding this comment.
Should AccessCoarseLocation be considered also?
Contributor
Author
There was a problem hiding this comment.
Probably, but I have no idea how to really convert between permission system on UWP and on Android. On Windows, we have requestprecision in meters; on Android, only coarse/fine (and I found no article with any precise info what is coarse, and what is fine).
And on UWP you can RequestAccess, than set requested precision. If RequestAsync ask system about coarse, than app would not be able to change to fine...
Contributor
Author
|
Recreated (to have only one Commit) as PR#2024. |
1 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Issue (If applicable): #1967
PR Type
What kind of change does this PR introduce?
What is the current behavior?
RequestAccessAsync() => GeolocationAccessStatus.Allowed;
What is the new behavior?
Above is correct only on API <23.
Now, it RequestAccessAsync() returns real GeolocationAccessStatus.
PR Checklist
Screenshots Compare Test Runresults.Other information
Internal Issue (If applicable):