Giter Club home page Giter Club logo

Comments (21)

MonasteryJohn avatar MonasteryJohn commented on April 28, 2024 8

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.

from expo.

ozanturksever avatar ozanturksever commented on April 28, 2024 1

it doesn't look fixed. I tried again and redirected to google.

from expo.

janicduplessis avatar janicduplessis commented on April 28, 2024 1

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.

from expo.

terribleben avatar terribleben commented on April 28, 2024

@brentvatne or @janicduplessis might have more thoughts about this.

from expo.

janicduplessis avatar janicduplessis commented on April 28, 2024

What android version are you using?

from expo.

ozanturksever avatar ozanturksever commented on April 28, 2024

i am testing on 6.0.1

from expo.

brentvatne avatar brentvatne commented on April 28, 2024

@janicduplessis - what's the status of this? I believe I recall seeing a fix a couple weeks ago

from expo.

janicduplessis avatar janicduplessis commented on April 28, 2024

Yes, we introduced a bug in sdk 14, it should be fixed now.

from expo.

omerdn1 avatar omerdn1 commented on April 28, 2024

@janicduplessis I can confirm It's not fixed, running sdk 14.

from expo.

ozanturksever avatar ozanturksever commented on April 28, 2024

yes, i am on a real device.

from expo.

omerdn1 avatar omerdn1 commented on April 28, 2024

@janicduplessis Works prefectly fine on a real device, thank you for clarifying.

from expo.

terribleben avatar terribleben commented on April 28, 2024

It sounds like this was an issue with device vs. emulator and is resolved - let me know if this should still be open.

from expo.

pandananta avatar pandananta commented on April 28, 2024

I'm experiencing this same issue on sdk 28, using a real device (Google Pixel)

from expo.

Nahani avatar Nahani commented on April 28, 2024

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

from expo.

opringle avatar opringle commented on April 28, 2024

Also experiencing this issue with a real google pixel 3.

from expo.

gauravsaluja2006 avatar gauravsaluja2006 commented on April 28, 2024

I'm experiencing this same issue on sdk 32 on a OnePlus5.
Although the same code is working on iPhone.

from expo.

QuintonC avatar QuintonC commented on April 28, 2024

...
For example, com.company.AppName would cause the redirect to google.com, whereas com.company.appname would be perfectly happy.
...

This worked for me as well. Huge thank you (and good find) @MonasteryJohn.

from expo.

jitenderchand1 avatar jitenderchand1 commented on April 28, 2024

facing the same issue. I have my package name in all lower case

from expo.

QuintonC avatar QuintonC commented on April 28, 2024

facing the same issue. I have my package name in all lower case

Which sdk? Are you detached?

from expo.

jitenderchand1 avatar jitenderchand1 commented on April 28, 2024

not detached from expo. This is happing on real android device. This is working fine with ios simulator
expo verion is 2.21.2

const result = await Google.logInAsync({
      behavior: 'web',
      androidStandaloneAppClientId:
        '131814552849-iwyqerbsbadf78623gjsfd.apps.googleusercontent.com',
      iosClientId:
        '131814552849-asdfsakwero9879sdhjkfs.apps.googleusercontent.com',
      scopes: ['profile', 'email']
    });
    "expo-asset": "^5.0.1",
    "expo-blur": "^5.0.1",
    "expo-linear-gradient": "^5.0.1",
    "firebase": "^6.2.4",
    "prop-types": "^15.7.2",
    "react": "16.8.3",
    "react-dom": "^16.8.6",
    "react-native": "^0.59.9",
    "react-native-animatable": "^1.3.2",
    "react-native-confirmation-code-input": "^1.0.4",
    "react-native-elements": "^1.1.0",
    "react-native-material-textfield": "^0.12.0",
    "react-native-web": "^0.11.4",
    "react-navigation": "^3.11.0",
    "react-redux": "^7.1.0",
    "redux": "^4.0.1",
    "redux-logger": "^3.0.6",
    "redux-thunk": "^2.3.0"```

from expo.

jitenderchand1 avatar jitenderchand1 commented on April 28, 2024

following code is working fine with android emulator.

const result = await Google.logInAsync({
      behavior: 'web',
      androidClientId:
        '131814552849-lkahdfiowyerioyowjasd.apps.googleusercontent.com',
      iosClientId:
        '131814552849-asdfkheioryuowsdknk.apps.googleusercontent.com',
      scopes: ['profile', 'email']
    });

While created a clientId I used host.exp.exponent as a packge name. But while creaed a standalone build by running expo build:android my app.json file has different packge name.

from expo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.