Geolocator.RequestAccessAsync Method #7708
sigmarsson
started this conversation in
General
Replies: 2 comments 4 replies
-
But why |
Beta Was this translation helpful? Give feedback.
1 reply
-
I attempt to invoke this API in a console application and face this error. Aren't Uno APIs intended to consume in console applications ? One of my unit test requires a peer process to run whilst unit testing. The assembly, which is being tested is referencing the package |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Important
Starting in Windows 10, call the RequestAccessAsync method before accessing the user’s location. At that time, your app must be in the foreground and RequestAccessAsync must be called from the UI thread. Your app can then handle the no-permissions case without throwing an exception.
MS doc suggests to invoke this method on UI thread before accessing geo location, like
var location = await new Geolocator().GetGeopositionAsync();
Will you add this method to your
Uno.WinUI.Geolocator
class ?Beta Was this translation helpful? Give feedback.
All reactions