When using Firefox as the default browser on Android, the Custom tab remains in the foreground after redirected to the app using custom data scheme and response is properly handled with data available in WebAuthenticatorResult.
NOTE: Using IdentityServer4 for the backend.
Custom tab is closed and MainActivity is back in foregeound.
App handles callback in WebAuthenticationCallbackActivity but custom tab remains in the foreground.
I have similar problems with Mi browser
I've experienced this issue in every browser I've tried. Samsung's, Edge, Chrome, Firefox. On Android 8, 9, and 10. On XF 4.7. Any update on where this is at? This bug completely breaks web authentication since there is no redirect back to the app.
Try to override OnCreate method of your WebAuthenticatorCallbackActivity like this:
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
new Task(() => {
StartActivity(new Intent(Application.Context, typeof(MainActivity)));
}).Start();
}
I've experienced this issue in every browser I've tried. Samsung's, Edge, Chrome, Firefox. On Android 8, 9, and 10. On XF 4.7. Any update on where this is at? This bug completely breaks web authentication since there is no redirect back to the app.
I do experience the same issue with Samsung's browser and Firefox but Chrome works fine for me. The only issue I've found with Chrome is that it somehow keeps its session active across app restarts, meaning it doesn't prompt for username/password until the session expires. That's another issue, though.
Most helpful comment
I've experienced this issue in every browser I've tried. Samsung's, Edge, Chrome, Firefox. On Android 8, 9, and 10. On XF 4.7. Any update on where this is at? This bug completely breaks web authentication since there is no redirect back to the app.