I am creating a .NET MAUI app that is going to get some data from the Strava API. When I try to use the WebAuthenticatorResult class to get the access token, passing the URI and the callbackURI I get the following error:
The code I am using is this:
On Strava, my authorization callback domain is set to literally "myapp.com".
When I try to URL directly on the browser it works (sorry, it is in portugues):
success when trying directly on the browser
Anybody has any idea?
If you check part Get started of document Xamarin.Essentials: Web Authenticatorenter ,you will find that:
And if your project's Target Android version is set to
Android 11 (R API 30)you must update your Android Manifest with queries that are used with the new package visibility requirements.Open the
AndroidManifest.xmlfile under the Properties folder and add the following inside of the manifest node:For more details, you can check:Xamarin.Essentials: Web Authenticator.