Login with Google Not working in expo build:android app

Viewed 10

I have implemented login with Google in react native app expo workflow. While testing the application on Expo Go app I was using the package name as host.exp.exponent but before building (APK) using expo build:android I have made news apps in firebase console with Package Name as com.Comapy.App. When I build the APK file and run it on Android Device, Sign in With Google doesn't work. This is my app.json

    {
  "expo": {
    "name": "Test",
    "slug": "Test",
    "version": "1.0.0",
    "orientation": "portrait",
    "userInterfaceStyle": "automatic",
    "icon": "./assets/Icons/icon.png",
    "splash": {
      "image": "./assets/Splash/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#674389"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true,
      "bundleIdentifier": "com.Test.app",
      "buildNumber": "1.0.0",
      "config": {
        "googleSignIn": {
          "reservedClientId": "ID"
        }
      }
    },
    "android": {
      "softwareKeyboardLayoutMode": "pan",
      "adaptiveIcon": {
        "foregroundImage": "./assets/Icons/icon.png",
        "backgroundColor": "#FFFFFF"
      },
      "package": "com.Test.app",
      "versionCode": 1
    },
    "web": {
      "favicon": "./assets/Icons/favicon.png"
    },
    "extra": {
      "eas": {
        "projectId": "e8ac922e-b064-4c9e-80f5-f1178d79324f"
      }
    }
  }
}
0 Answers
Related