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)
- Exposed types for `Stack.Screen` options is incorrect
- [expo-sqlite/next] Unable to query existing database HOT 1
- Getting undocumented "boundingBox" in the BarcodeScanningResult on Samsung SM-N9700 HOT 1
- Issue with react native 0.70.15 HOT 3
- App crash after sentry implementation HOT 1
- Config Command isn't populating currentFullName & originalFullName HOT 1
- [Calendar] - Android calendar is returning isPrimary with wrong value
- XMLHttpRequestUpload events not firing in Expo Go 49+ HOT 1
- [expo-image] support for updated cached image against url HOT 1
- [expo-location] requestForegroundPermissionsAsync() is never resolved on native iOS
- If query parameters of a link contains brackets then expo router removes that query parameter HOT 3
- Expo SDK 50 - SQLite causes issues on Android
- Linear Gradient Changing orientation to 90deg when changing screen HOT 2
- [SDK50] Consistent KeyChainException with expo-secure-store usage
- expo-camera/next video quality not working HOT 1
- I can't build my android apk, It seems that the node command cannot be found HOT 2
- FetchError: request to https://api.expo.dev/v2/sdks/50.0.0/native-modules failed, reason: unable to verify the first certificate HOT 8
- Cannot find native module 'ExpoTaskManager', js engine: hermes HOT 3
- SDK48: background location updates frequency with taskmanager
- How to install Expo into bare ReactNative with altered AppDelegate HOT 1
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.