Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

WebAuthenticator CustomTab wont redirect to App

Open AndersEben opened this issue 2 years ago • 2 comments

I started using the Web Authenticator to do twitch auth for an app, but the browser does not close and redirects back to the app. I build my auth like the example on https://docs.microsoft.com/de-de/xamarin/essentials/web-authenticator but wenn i add the Manifest lines and open it in CustTab it wont redirect the answer to my app only shows me the callback from twitch as page unavailable because of redirect to localhost.

without the Manifest change the Web Authenticator opens browser and by recieving the callback it ask for "Open" and wenn i choose my app it get the results and i can work with. What Im doing wrong ?

App goes from Android 8-11 (11 requires CustomTabsService?) Essentials 1.7.1

AndersEben avatar Mar 22 '22 17:03 AndersEben

Hi, I'm having the exact same problem as @AndersEben . It is maybe worth mentioning that it works fine in an android 11 emulator, even with the manifest change. However, any physical device with android 11 we tried had the issue described.

Ludovic192 avatar Mar 25 '22 09:03 Ludovic192

add

I started using the Web Authenticator to do twitch auth for an app, but the browser does not close and redirects back to the app. I build my auth like the example on https://docs.microsoft.com/de-de/xamarin/essentials/web-authenticator but wenn i add the Manifest lines and open it in CustTab it wont redirect the answer to my app only shows me the callback from twitch as page unavailable because of redirect to localhost.

without the Manifest change the Web Authenticator opens browser and by recieving the callback it ask for "Open" and wenn i choose my app it get the results and i can work with. What Im doing wrong ?

App goes from Android 8-11 (11 requires CustomTabsService?) Essentials 1.7.1

Add in Manifest

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

alextorres50 avatar Apr 07 '22 16:04 alextorres50