Comments (21)
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.
it doesn't look fixed. I tried again and redirected to google.
from expo.
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.
@brentvatne or @janicduplessis might have more thoughts about this.
from expo.
What android version are you using?
from expo.
i am testing on 6.0.1
from expo.
@janicduplessis - what's the status of this? I believe I recall seeing a fix a couple weeks ago
from expo.
Yes, we introduced a bug in sdk 14, it should be fixed now.
from expo.
@janicduplessis I can confirm It's not fixed, running sdk 14.
from expo.
yes, i am on a real device.
from expo.
@janicduplessis Works prefectly fine on a real device, thank you for clarifying.
from expo.
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.
I'm experiencing this same issue on sdk 28, using a real device (Google Pixel)
from expo.
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.
Also experiencing this issue with a real google pixel 3.
from expo.
I'm experiencing this same issue on sdk 32 on a OnePlus5.
Although the same code is working on iPhone.
from expo.
...
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.
facing the same issue. I have my package name in all lower case
from expo.
facing the same issue. I have my package name in all lower case
Which sdk? Are you detached?
from expo.
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.
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)
- [docs] expo-sqlite getAsync function reference
- [Task-manager][BackgroundFetch]PluginError: Plugin is an unexpected type: object HOT 1
- Error Cannot find native module ExpoFontLoader HOT 7
- Send parameters to nested navigators HOT 1
- @expo/fingerprint return error - Cannot get Expo config from an Expo project HOT 1
- Background Fetch not work in Background HOT 3
- expo start --dev-client binds to ipv6 while internal distribution with dev-client connects only via ipv4
- [camera] torch not working HOT 2
- Watchman install not recommended for iOS development [docs] HOT 3
- [expo-video] I can't use youtube urls to show videos in my app HOT 1
- expo-av audo playback works on web but not on iOS HOT 1
- "✅ AppContext was initialized" is running Twice HOT 3
- Can't build with private npm packages in the dependencies HOT 2
- Drawer Navigation on right renders in center when navigating
- Download Profile Button Not Activating on iPhone 11 During Internal Distribution Setup HOT 2
- Expo Router entry-point + monorepo `node_modules` resolution issue HOT 1
- Upgrade Google Services Version for `expo-config` HOT 2
- Issue with decreasing device volume in iOS after expo-av recording ends HOT 1
- expo location doesn't update in the frontend HOT 1
- Expo Router is not compatible with ESLint + Bun (`Error: Cannot find module 'ajv/dist/compile/codegen'`) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from expo.