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
Authenticate with google doesn't redirect back to app #53
Comments
@brentvatne or @janicduplessis might have more thoughts about this. |
What android version are you using? |
i am testing on 6.0.1 |
expo#53) * [sdk] Lazy imports for exponent-sdk. * [android] QR code support. fbshipit-source-id: 04bb1ce
@janicduplessis - what's the status of this? I believe I recall seeing a fix a couple weeks ago |
Yes, we introduced a bug in sdk 14, it should be fixed now. |
it doesn't look fixed. I tried again and redirected to google. |
@janicduplessis I can confirm It's not fixed, running sdk 14. |
Are you testing on a real device or the simulator? Also what browser is installed on it? I'm asking because on the Android simulator the installed browser is usually WebviewBrowser and it doesn't support app scheme redirects. |
yes, i am on a real device. |
@janicduplessis Works prefectly fine on a real device, thank you for clarifying. |
It sounds like this was an issue with device vs. emulator and is resolved - let me know if this should still be open. |
I'm experiencing this same issue on sdk 28, using a real device (Google Pixel) |
I have the same issue on sdk 31, using real device. After loggin we are not redirect to the app but to the web page google.com |
Also experiencing this issue with a real google pixel 3. |
I'm experiencing this same issue on sdk 32 on a OnePlus5. |
Not sure if this will help anyone else, but I found that I would run into this problem on a real device if my android package name had a mix of upper and lower case letters. For example, com.company.AppName would cause the redirect to google.com, whereas com.company.appname would be perfectly happy. In my case it made no difference whether the Google oAuth credential was set to the same upper case version or not, it just didn't work that way at all.' @terribleben Is there any other solution to this problem? Still experiencing with sdk 32 on S9. |
This worked for me as well. Huge thank you (and good find) @MonasteryJohn. |
facing the same issue. I have my package name in all lower case |
Which sdk? Are you detached? |
not detached from expo. This is happing on real android device. This is working fine with ios simulator
|
following code is working fine with android emulator.
While created a |
Authenticate with google(on Android) redirects to google.com not to app itself.
Can be reproduced with exp.host@notbrent/native-component-list google auth button.
url redirected:
https://accounts.google.com/o/oauth2/v2/auth?redirect_uri=host.exp.exponent%3A%2Foauthredirect&client_id=733666839474-29hiep386cbm9u262lvgjf96uvq8pglu.apps.googleusercontent.com&response_type=code&state=hZ3f26YcYdrzfQLpvWRm7w&scope=profile%20email&code_challenge=5xHtVcrqLe_hCKOnj_rLYgjSRZut98C8O3ATsMfS8j8&code_challenge_method=S256
The text was updated successfully, but these errors were encountered: