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)
-
my google sign in app
try { const result = await Google.logInAsync({ androidClientId: "556835760268-jm5v5u3h1bu4rcontent.com", androidStandaloneAppClientId: "556835760268-jm5v5u3h1bu4uea3jr788tent.com", scopes: ["profile", "email"], });
-
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" }
}