You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I clone this repo to play with the example app and follow the steps to use my domain and client id. I renamed .env.example to .env and filled with my values. Same for strings.xml.example to strings.xml and replace with my values. I edited the example app L54 and L83, with these code:
// L54
final result = await auth0.webAuthentication().login(
redirectUrl: '<my_package_id>://login-callback',
useEphemeralSession: true,
);
// L83
await auth0.webAuthentication().logout(
returnTo: '<my_package_id>://logout-callback');
and run the app in both iOS and Android. It works on iOS, after tapping on Web Auth Login button, I can see the web page, enter my email and password and tap Log In, then I can see the idToken printed in the Flutter app. But when I run the same code on Android (both simulator or actual device) I always see the web page being dismissed automatically without user interaction and this is the error :
a0.authentication_canceled: The user closed the browser app and the authentication was canceled.
How can I fix that code? What am I missing to configure in Android to make it work?
run the app on iOS, tap on 'Web Auth Login', you will be able to log in and the idToken will be printed in the Flutter app.
run the app on Android, tap on 'Web Auth Login',, you will see the web being launched and dismissed automatically without user interaction. And error is
a0.authentication_canceled: The user closed the browser app and the authentication was canceled.
Additional context
No response
auth0_flutter version
auth0_flutter
Flutter version
3.19.3
Platform
Android, iOS
Platform version(s)
No response
The text was updated successfully, but these errors were encountered:
Checklist
Description
I clone this repo to play with the example app and follow the steps to use my domain and client id. I renamed
.env.example
to.env
and filled with my values. Same forstrings.xml.example
tostrings.xml
and replace with my values. I edited the example app L54 and L83, with these code:and run the app in both iOS and Android. It works on iOS, after tapping on
Web Auth Login
button, I can see the web page, enter my email and password and tapLog In
, then I can see theidToken
printed in the Flutter app. But when I run the same code on Android (both simulator or actual device) I always see the web page being dismissed automatically without user interaction and this is the error :How can I fix that code? What am I missing to configure in Android to make it work?
Reproduction
env
file with your valuesstrings.xml
with your valueswebAuthLogin()
method L54 with:webAuthLogout()
method L83 with:idToken
will be printed in the Flutter app.Additional context
No response
auth0_flutter version
auth0_flutter
Flutter version
3.19.3
Platform
Android, iOS
Platform version(s)
No response
The text was updated successfully, but these errors were encountered: