Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: Return to system launcher after successful webAuth instead of reopening my app #82

Closed
FredericRuaudel opened this issue Aug 21, 2017 · 2 comments

Comments

@FredericRuaudel
Copy link

FredericRuaudel commented Aug 21, 2017

Hi!

Maybe it's related to #47, but not sure so I create a new ticket.

As #67 is now fixed, I tried again my webAuth implementation on Android but it fails to work. After I successfully logged in with my social account, the browser return to the system launcher instead of opening back my app.
And when I switch back to my app using the overview button (the square one), I'm correctly logged in.

I manage to reproduce the bug using the sample app https://github.com/auth0-samples/auth0-react-native-sample by simply modifying the authorize call like that in index.js:24-30:

.webAuth
.authorize({
    scope: "openid given_name family_name email",
    connection: 'google-oauth2',  //<-----   Add the kind of social connection here (same with 'facebook')
    audience: 'https://' + credentials.domain + '/userinfo'
})

Thanks in advance for your help!

@hzalaz
Copy link
Member

hzalaz commented Aug 21, 2017

@FredericRuaudel its working for me. Please make sure you correctly linked the library using react-native link and that the Android Intents are correctly declared in the AndroidManifest.xml (you need to restart the app in the device since this is native code not JS code)

@cocojoe
Copy link
Member

cocojoe commented Oct 12, 2017

Closing due to inactivity.

@cocojoe cocojoe closed this as completed Oct 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants