Call Ask Permissions on UI Thread

Viewed 36

When loading the app I am working on it calls

await Permissions.RequestAsync<Permissions.LocationWhenInUse>();

to make sure the app has permissions to get the GPS lat, long. When it does this I get the exception

Permission request must be invoked on main thread

how do I ensure this is done on the UI Thread ?

1 Answers
Related