Repository navigation
Conversation
|
Re: testing
|
|
Test - but what can be tested? That function returns anything at all? |
|
These changes can be treated as step in right direction, but not as satisfactionary. |
As HasVerticalAccuracy and VerticalAccuracyMeters are marked as "to be added", using it cause runtime exception. Commenting-out this code.
|
At last, I got Geolocator working. With full RequestAccessAsync implementation. Second big change is inside GetGeopositionAsync, but I think I should wait for some solution for CS0234 problem mentioned above, to change PR. |
|
Indeed you cannot use |
working outside Uno (in app). lines 271-309 should be splitted in layers (but I don't know how to do it).
|
Help is needed for splitting RequestAccessAsync into levels... (BaseActivity to ContextHelper.Current etc.). Current version works inside app, not inside Uno. |
This comment has been minimized.
This comment has been minimized.
|
All code that doesn't need help (== not related to dialog asking user for permission) is now in PR #2536, as suggested. |
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
Recreated PR#1998 to have one commit.
This should be only first step in rewriting RequestAccessAsync() - it should behave as on Windows, i.e. it should display system dialog asking for permission. But this is beyond my Android knowledge.
I don't know how to make test for this PR... Not from programmers point of view, but no idea how to test this change.
Internal Issue (If applicable):