'Xamarin.Essentials WebAuthenticator cannot capture redirect data

im trying to register over WebAuthenticator my mobile app with twitch but im stuck by getting data back from from WebAuthenticator.

WebAuthenticator:

WebAuthenticatorResult authResult = await WebAuthenticator.AuthenticateAsync(
                    new Uri("https://id.twitch.tv/oauth2/authorize?client_id={ ClientID }&redirect_uri=https://com.anderssoft.twitchviewer/&response_type=token&scope={ Scope }"),
                    new Uri("https://com.anderssoft.twitchviewer/"));

var accesToken = authResult?.AccessToken;

IntentFilter :

    [Activity(NoHistory = true, LaunchMode = LaunchMode.SingleTop)]
    [IntentFilter(new[] { Android.Content.Intent.ActionView }, Categories = new[] { Android.Content.Intent.CategoryDefault, Android.Content.Intent.CategoryBrowsable }, DataScheme = "https", DataHost = "com.anderssoft.twitchviewer")]
    public class WebAuthenticationCallbackActivity : Xamarin.Essentials.WebAuthenticatorCallbackActivity
    {
    }

AndroidManifest added:

<queries>
    <intent>
        <action android:name="android.support.customtabs.action.CustomTabsService" />
    </intent>
</queries>

Without added lines in manifest it will recieve callback but end in nullref and with the lines it stucks in app with returned data from twitch but the filter did not recieve it. Ive tried it multiple ways and dont know whats next...

App goes from Android 8-11



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source