expo Google Login redirect to google.com in standalone

my app bild with Expo , i use import * as Google from "expo-google-app-auth"; for signin users from google. in development mode its work correcctly like expected.
but in standalone mode ,

its redirect me to choose email, and after i choose its redirect me to google.com home page instead of back to my app

the question: why is redirect me to google and how can i handle that (again – in development mode its work)

  1. my google sign in app

    try {
    const result = await Google.logInAsync({
    	androidClientId: "556835760268-jm5v5u3h1bu4rcontent.com",
    	androidStandaloneAppClientId: "556835760268-jm5v5u3h1bu4uea3jr788tent.com",
    	scopes: ["profile", "email"],
    });
    
  2. my app.json file:

    {
    "expo": {
    "name": "Lior",
    "slug": "Lior",
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "scheme": "myapp",
    "splash": {
    "image": "./assets/splash.png",
    "resizeMode": "contain",
     "backgroundColor": "#ffffff"
      },
    
     "updates": {
     "fallbackToCacheTimeout": 0
     },
      "assetBundlePatterns": [
     "**/*"
     ],
      "ios": {
      "bundleIdentifier": "com.roei.liorApp",
       "buildNumber": "1.0.0"
         },
          "web": {
          "favicon": "./assets/favicon.png"
        },
      "android": {
       "package": "com.roei.liorApp",
       "versionCode": 1,
        "config": {
        "googleSignIn":{
       "apiKey": "AIzaSyD4K3trmw",
       "certificateHash": "89B503B4EDC94"
        },
        "googleMaps": {
         "apiKey": "AM35K3trmw"
     }
    

}

1 Like

I have the same problem as you. Looking at a solution

Hello
I have been fixed it.
Note: your package name contains upper case “package”: “com.roei.liorApp”.
To fix it, you only change to lower case all ex: “package”: “com.roei.liorapp” and create new Create credentials with new package name and rebuild
^^

1 Like

Hello,
I had the same Issue and got it fixed by changing all the letters to lower in package name in app.json.
Don’t forget to change the same in Google API as well.

I mean why would upper and lower case be an issue. This is insane.