react-native-google-signin / google-signin Goto Github PK
View Code? Open in Web Editor NEWGoogle Sign-in for your React Native applications
Home Page: https://react-native-google-signin.github.io/
License: MIT License
Google Sign-in for your React Native applications
Home Page: https://react-native-google-signin.github.io/
License: MIT License
the only way to get the current access token is to listen to googleSignIn
and cache the value.
this event is called after signin and when re-launching the app when you're already signed in.
I would like to be able to do the following:
GoogleSignin.getCurrentAccessToken((token)=> {
console.log(token);
});
I'm a newbie to react native. Sorry, If it is a lame question. But, I followed all the steps mentioned in the readme file. I'm getting the following error.
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.witapp, PID: 9047
java.lang.NullPointerException: null reference
at com.google.android.gms.common.internal.zzx.zzy(Unknown Source)
at com.google.android.gms.auth.api.signin.internal.zzc.getSignInIntent(Unknown Source)
at co.apptailor.googlesignin.RNGoogleSigninModule$2.run(RNGoogleSigninModule.java:74)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5343)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
Getting this error on Android. This shows when I click a button that runs GoogleSignin.signIn()
. It doesn't make it to the login view at all, just errors out. I have my debug token set as the fingerprint, not sure what else to check?
Error: INTERNAL_ERROR
at GoogleSigninError.Error (native)
at new GoogleSigninError (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false:93823:188)
at http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false:93875:8
at EventEmitter.emit (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false:50043:23)
at MessageQueue.__callFunction (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false:48673:23)
at http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false:48577:8
at guard (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false:48531:1)
at MessageQueue.callFunctionReturnFlushedQueue (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false:48576:1)
at DedicatedWorkerGlobalScope.onmessage (http://localhost:8081/debuggerWorker.js:39:56)
Got this error when starting the example app. Any ideas what it can be?
We've been trying getting the example to run on both Android and iOS simulator with
no luck so far. What are we missing? Been running the app straight from the react-native-google-signin/example
folder
For iOS the simulator complains: "Could not connect to development server".
Tried to launch it from VScode using debug iOS. Also tried react-native start
from terminal.
Please include some basic getting started instructions for newbies.
Not even sure what to use the iOS guide for... I assume this is a guide for how to integrate this plugin into existing project, not running any of the examples.
Please help get us going. Thanks :)
Why does iOS return an access token and Android does not? I'm just learning about the Google APIs...How do I get an access token / make requests after I've properly authenticated with this module? I'm specifically trying to utilize the Google Calendar API after authenticating. Thanks in advance.
Works fine in the simulator, but running on device I get an exception stating my app 'should support the following URL types' and then lists the url types which I have already entered into the config.
On this line I get the above error:
var GoogleSignin = require('react-native-google-signin');
It might have just been something I did, any help is appreciated
while integrating google login says wrong sign in what's going wrong for me react-native 0.21.0 react-native-google-signin": "0.4.0" I have set my configuration google-services correct
I have also tried the example given by react-native-google-signin .The same issue
continues . So please guide me.
Herewith I have provided with the error screenshot.
WRONG SIGNIN Error: unknown status code: 12501
at GoogleSigninError.Error (native)
Please support me
Thanks in advance
This is not a bug; more of a question to see what ideas are used out there.
When a user logs in via google-signin, a user object is returned similar to the following:
accessToken: "ya29.hQJD767t_-geYHlFUyW9CCAGBC"
accessTokenExpirationDate: 3599.984444022179
email: "[email protected]"
id: "1003109889901343"
idToken: "eyJhbGciOiJSUzI1NiIsImtpZCI6ImYwMmZkODgwOTNmNTQ2Mjg1MD"
name: "My name"
photo: "https://lh5.googleusercontent.com/-/8elejb5_N1A/s120/photo.jpg"
serverAuthCode: "4/4eGtD4XPGKnIGxUUVhVe96XYBz11Y"
The accessToken
is what I use when invoking various google api endpoints which I plan to be doing fairly frequently whilst the user is using my app.
Is it expected that I cache this user object for 3599
seconds before needing to re-sign the user? Or would I call a google endpoint to refresh the token, and aim to keep the token alive all the time?
Thoughts?
googleSignIn is called after GoogleSignin.configure. Is it designed to behave this way?
iOS 9.2 with RN 0.17.0
I've setup what is in the example index.ios.js file. After tapping the sign in button, completing the flow, and returning to my app, the view doesn't update to reflect the current state where user is signed in. I need to reload the app in order for it to re-render with the new state.
A possibly related note is that after signing in, the 'Back to Google' link is still in the top left of the status bar.
Am I missing something?
It looks like GoogleSignin.framework uses by default oauth2
implcit grant type
, which is not secure - it means that accessToken
is just returned with the redirection from authorization server (easy to sniff) instead of manually obtained server side using one-time server auth code and secret.
It would be good to change it, it will also be consistent with how Android version works.
Theoretically here is documentation how to do this:
https://developers.google.com/identity/sign-in/ios/offline-access
I just wanted to do pull request with these changes, but for some reason I'm still getting accessToken
and no user.serverAuthCode
.
I believe the reason for #52 is due to the SDK version. Using 3.0.0, the sign-in page does not flip to safari. Would you consider updating to 3.0.0?
I gave it a quick try and there were no code changes needed (at least on my setup). The only changes I had to make were:
StoreKit.framework
is no longer necessarySafariServices.framework
needs to be linkedFull changes are:
https://developers.google.com/identity/sign-in/ios/release#2016-03-22_--_v300
Experiencing the same thing outlined here.
I have a webClientId
setup and offlineAccess
set to true. When a user has the Google App installed on their phone it will open that application for authentication. When it comes back to my app the sign in throws an error.
Everything works as expected on the simulator or when the user doesn't have the Google App (thus opening the web view for authentication). Everything also works fine when the offlineAccess is set to false.
It seems that app switching isn't recommended in by this comment.
I tried to dig into the package code but couldn't figure much out (unfamiliar with native ios development). Any help is greatly appreciated!
there's currently no event for signout.
it seems like this is never:
npm install react-native-google-signin
npm ERR! cb() never called!
When I try to build on a device with iOS 9.0 (simulator works fine) I get the following error:
ld: 'PROJ_PATH/node_modules/react-native-google-signin/RNGoogleSignin/GoogleSignIn.framework/GoogleSignIn(GTMABAddressBook.o)' does not contain bitcode.
You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Hi, can you add pods support for this?
First, thanks for the package. It's saved me a lot of time.
I'm finding that after updating to 0.4.0 the silent sign in isn't working consistently/at all. I was looking through the source and I saw that with Android you're listening for a RNGoogleSignInSilentSuccess
event whereas on ios there is no mention of that event.
I'm not familiar with objective c or java though so I could be totally off here. Any help would be appreciated!
One thing I should note is that I do have login working fine. I'm able to login with email and password and after I've logged in once all I have to do in subsequent requests is press "Allow". It doesn't require me to enter my email/password again.
Hello. Help me please. I've implemented your module: on android 4.4.2 it works perfectly, but if I try on 5.0.1 I got GoogleSigninError INTERNAL_ERROR code: 8.
RN v0.23
RN-google-signin: v0.4.3
I checked everythin from #35 issue, maybe you found correct solution for that, I hope.
Thanks
Would it be possible to alter the build of react-native-google-signin to include Bitcode?
Currently I have to disabled Bitcode for my whole project as a result which is something I'd prefer not to do as you obviously lose the benefits that Apple provide when using Bitcode
Without providing client Id to GoogleSignin.configure plugin works well. But when i pass this parameter, i get the "unknown status code: 12501". I learned that this error may come from wrong configuration, but...
The client Id i get from google developers console (New credentials -> OAuth ClientID -> Android). SHA-1 signing-certificate fingerprints specified correctly (fingerprint from ~/.android/debug.keystore matches to that specified in android/app/google-services.json and this key definitely used to sign my debug apk). Also client_id in google-services.json matches to that i pass to GoogleSignin.configure.
Any thoughts?
Android 6.0.1, [email protected], [email protected]
I have a use-case where I would like to track if the user taps the Cancel
button in the sign-in dialog.
In order to do this, would it be possible to send an event when dismissViewController is invoked?
It would be helpful to be able to distinguish if dismissViewController
was called due to the user pressing Cancel
or due to a successful sign in.
I am open to other ideas or options, but I thought having this would be useful.
I've just installed this library by running
npm install react-native-google-signin --save
I have the following at the top of my react script:
'use strict';
var React = require('react-native');
var {
StyleSheet,
Component,
View,
Text,
TouchableOpacity,
Navigator,
TextInput
} = React;
and I then appended
import {GoogleSignin, GoogleSigninButton} from 'react-native-google-signin';
I then pressed Run in XCode and it throws the following error
undefined is not an object (evaluating 'RNGoogleSignin.BUTTON_SIZE_ICON')
If I remove
import {GoogleSignin, GoogleSigninButton} from 'react-native-google-signin';
the error is not thrown.
When trying to login with google , it is opening on safari directly. So it can able to edit URL in browser and also it redirect to Google.com page.How can I fix this?
Is it designed to behave this way?
iOS 9.2 with RN 0.17.0
I get the following message in Xcode console:
A new version of GoogleSignIn is available: https://cocoapods.org/pods/GoogleSignIn
couldn't find which version is currently in use, but the latest is v2.4.0
how can i get user information like profile_picture, gender,link,first_name and last_name
I'm not sure how this gets called, but it works for me on android fine. II'm pretty much following the example...
componentDidMount() {
GoogleSignin.configure({
scopes: [],
iosClientId: 'myiosid',
webClientId: 'mywebid',
offlineAccess: false
});
GoogleSignin.currentUserAsync().then((user) => {
console.log('USER', user);
this.setState({user: user});
}).done();
}
rn 0.18.1, xcode 7.2, react-native-google-signin 0.4.0
Hi, thanks for this component, it was working in my project,
but something got strange recently in my iOS simulator: after filling the username/password form,
clicking on "Allow" button,
and confirm dialog of "Open this page in 'YourAppName'?" ,
even though my user is available in safari, but there's no data reply to my app, the error log says:
Apr 2 00:22:27 VBElCapitan MobileSafari[1051]: Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates.
Apr 2 00:22:29 VBElCapitan assertiond[926]: assertion failed: 15A282b 13E5225a: assertiond + 16726 [8FC7066F-814E-3544-8332-F9079B87DFEF]: 0x1
Apr 2 00:22:29 ElCapitan assertiond[926]: Requesting process (<BKNewProcess: 0x7967ffc0; com.apple.mobilesafari; pid: 1051; hostpid: -1>) is suspended and cannot obtain assertions
Apr 2 00:22:29 ElCapitan SpringBoard[922]: [MPUSystemMediaControls] Updating supported commands for now playing application.
Apr 2 00:22:34 ElCapitan MobileSafari[1051]: Can't endBackgroundTask: no background task exists with identifier 86, or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.
Apr 2 00:23:24 ElCapitan routined[911]: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104
Apr 2 00:23:37 ElCapitan assertiond[926]: assertion failed: 15A282b 13E5225a: assertiond + 16726 [8FC7066F-814E-3544-8332-F9079B87DFEF]: 0x1
is it a xcode problem or a simulator issue? or maybe I need to change anything in codes/settings ?
I run the example again, without any problem, but it happened again when I re-add it into my project
Thanks a lot
I want to authenticate with backend server. For that, I need to send the token value to the backend server. But, I'm always getting null value in the token field. When I was searching in google, I found this.
You must configure Google Sign-In with the requestIdToken method to successfully call getIdToken. If you do not configure Google Sign-In to request ID tokens, the getIdToken method returns null.
Source : https://developers.google.com/identity/sign-in/android/backend-auth
This is not an issue. This is feature request. But, I couldn't add label here. Thanks.
Which of the token should be used with firebase's authWithOAuthToken
for google provider? Thanks.
//facebook & Google Auth----------------------------------------------------------------
(BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation {
if ([RNGoogleSignin application:application openURL:url sourceApplication:sourceApplication annotation:annotation]) return YES;
return [[FBSDKApplicationDelegate sharedInstance] application:application openURL:url sourceApplication:sourceApplication annotation:annotation];
}
// native Event when app go from background to foreground
(void)applicationDidBecomeActive:(UIApplication *)application {
[FBSDKAppEvents activateApp];
}
//facebook & Google Auth-----------------------------------------------------------------
I am unable to login on android, I can see popup asking for account. Then it don't print anything.
DeviceEventEmitter.addListener('googleSignInError', (error) => {
console.log('ERROR signin in', error);
});
DeviceEventEmitter.addListener('googleSignIn', (user) => {
console.log(user);
});
But i get following error when app starts
ERROR signin in Object {error: "SIGN_IN_REQUIRED", code: 4}
Running into an INTERNAL_ERROR (Code: 8) when trying to log in.
Current setup:
RN: 0.19
RN-google-signin: 0.4.0
Trying on Google Nexus 6 (6.0.0 - API 23).
I've got an API key created based on the Android debug.keystore, as well as OAuth client IDs for both Android and Web types. I've tried the both ClientIDs in my GoogleSignin.configure() call, but both yield the same error. The package names between the Android API and OAuth configs are the same, and they match the AndroidManifest too.
Not sure if there's anything else I can try to debug?
Thanks!
I've followed all of the steps in the instructions to get this setup with the Android environment (no issues in iOS) in React Native, but am getting the following error when running react-native run-android
Building and installing the app on the device (cd android && ./gradlew installDebug)...
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> A problem occurred configuring project ':react-native-google-signin'.
> Could not resolve all dependencies for configuration ':react-native-google-signin:_debugCompile'.
> Could not find com.google.android.gms:play-services-auth:8.3.0.
Searched in the following locations:
file:/Users/steven/.m2/repository/com/google/android/gms/play-services-auth/8.3.0/play-services-auth-8.3.0.pom
file:/Users/steven/.m2/repository/com/google/android/gms/play-services-auth/8.3.0/play-services-auth-8.3.0.jar
https://jcenter.bintray.com/com/google/android/gms/play-services-auth/8.3.0/play-services-auth-8.3.0.pom
https://jcenter.bintray.com/com/google/android/gms/play-services-auth/8.3.0/play-services-auth-8.3.0.jar
file:/usr/local/opt/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-auth/8.3.0/play-services-auth-8.3.0.pom
file:/usr/local/opt/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-auth/8.3.0/play-services-auth-8.3.0.jar
Required by:
PowerToolSafe:react-native-google-signin:unspecified
I've added the following to the top-level build.gradle:
'com.google.gms:google-services:1.5.0'
And the following to the app-level build.gradle:
apply plugin: 'com.google.gms.google-services'
...
dependencies {
...
compile project(":react-native-google-signin")
}
I've tried different versions of google-services
but end up still getting the build error. In JCenter I don't even see com/google/android/gms/play-services-auth
.
Thanks!
I am getting this error when trying to run my app with google signin. I dont feel like I've done anything different than the instructions and I folllowed the example in my js. Any help with this is greatly appreciated!
01-27 11:16:36.949 14644-14666/? E/unknown:React: Exception in native call from JS
01-27 11:16:36.949 14644-14666/? E/unknown:React: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context com.google.android.gms.common.api.GoogleApiClient.getContext()' on a null object reference
01-27 11:16:36.949 14644-14666/? E/unknown:React: at com.google.android.gms.auth.api.signin.internal.zzc.signOut(Unknown Source)
01-27 11:16:36.949 14644-14666/? E/unknown:React: at co.apptailor.googlesignin.RNGoogleSigninModule.signOut(RNGoogleSigninModule.java:82)
01-27 11:16:36.949 14644-14666/? E/unknown:React: at java.lang.reflect.Method.invoke(Native Method)
01-27 11:16:36.949 14644-14666/? E/unknown:React: at java.lang.reflect.Method.invoke(Method.java:372)
01-27 11:16:36.949 14644-14666/? E/unknown:React: at com.facebook.react.bridge.BaseJavaModule$JavaMethod.invoke(BaseJavaModule.java:249)
01-27 11:16:36.949 14644-14666/? E/unknown:React: at com.facebook.react.bridge.NativeModuleRegistry$ModuleDefinition.call(NativeModuleRegistry.java:158)
01-27 11:16:36.949 14644-14666/? E/unknown:React: at com.facebook.react.bridge.NativeModuleRegistry.call(NativeModuleRegistry.java:58)
01-27 11:16:36.949 14644-14666/? E/unknown:React: at com.facebook.react.bridge.CatalystInstanceImpl$NativeModulesReactCallback.call(CatalystInstanceImpl.java:430)
01-27 11:16:36.949 14644-14666/? E/unknown:React: at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
01-27 11:16:36.949 14644-14666/? E/unknown:React: at android.os.Handler.handleCallback(Handler.java:739)
01-27 11:16:36.949 14644-14666/? E/unknown:React: at android.os.Handler.dispatchMessage(Handler.java:95)
01-27 11:16:36.949 14644-14666/? E/unknown:React: at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
01-27 11:16:36.949 14644-14666/? E/unknown:React: at android.os.Looper.loop(Looper.java:135)
01-27 11:16:36.949 14644-14666/? E/unknown:React: at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:184)
01-27 11:16:36.949 14644-14666/? E/unknown:React: at java.lang.Thread.run(Thread.java:818)
Hi,
I've noticed the properties "Size" and "Color" are not working on android (I've not tested on ios).
snippet to reproduce it:
<GoogleSigninButton
style={{width: 140, height: 48}}
size={GoogleSigninButton.Size.Wide} // ignoring this value
color={GoogleSigninButton.Color.Dark} // ignoring this value as well
onPress={this._signIn.bind(this)}/>
P.s. : running it on react-native 0.22.2
Cheers,
Paulo
I tried to follow the iOS guide to the point.
add a URL with scheme set to your bundle id
My bundle identifier on the general
tab is set to: com.tecla5.chat
I created a URL scheme with com.tecla5.chat
for both Identifier
and URL scheme
but for some reason it expects the reverse, chat.tecla5.com
.
If I change the URL scheme to this form, it also errors. What is the deal (correct settings) here? What could I be missing?
When I click the Login
button I get this error:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Your app is missing support for the following URL schemes: chat.tecla5.com'
Hey, thanks for this awesome lib!.
I'm configuring it for Android and I get an error when I run: react-native run-android
:
Building and installing the app on the device (cd android && ./gradlew installDebug)...
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> A problem occurred configuring project ':react-native-google-signin'.
> Could not resolve all dependencies for configuration ':react-native-google-signin:_debugCompile'.
> Could not find com.google.android.gms:play-services-auth:8.3.0.
Searched in the following locations:
file:/home/pjnovas/.m2/repository/com/google/android/gms/play-services-auth/8.3.0/play-services-auth-8.3.0.pom
file:/home/pjnovas/.m2/repository/com/google/android/gms/play-services-auth/8.3.0/play-services-auth-8.3.0.jar
https://jcenter.bintray.com/com/google/android/gms/play-services-auth/8.3.0/play-services-auth-8.3.0.pom
https://jcenter.bintray.com/com/google/android/gms/play-services-auth/8.3.0/play-services-auth-8.3.0.jar
http://dl.bintray.com/mkonicek/maven/com/google/android/gms/play-services-auth/8.3.0/play-services-auth-8.3.0.pom
http://dl.bintray.com/mkonicek/maven/com/google/android/gms/play-services-auth/8.3.0/play-services-auth-8.3.0.jar
file:/home/pjnovas/adt-bundle-linux-x86_64-20131030/sdk/extras/android/m2repository/com/google/android/gms/play-services-auth/8.3.0/play-services-auth-8.3.0.pom
file:/home/pjnovas/adt-bundle-linux-x86_64-20131030/sdk/extras/android/m2repository/com/google/android/gms/play-services-auth/8.3.0/play-services-auth-8.3.0.jar
Required by:
TourneyReact:react-native-google-signin:unspecified
I'm at Ubuntu 14.04 and Node 5.1.1
Any ideas?, thanks!
If a user tries to log in using a domain hosted by google, and also does not have a profile picture associated with their account, a NullPointerException is thrown at acct.getPhotoUrl().toString());
This error only occurs on Android (not iOS).
I am running version 0.3.1 with react native 0.18.0-rc
Here's a sample stack trace:
FATAL EXCEPTION: main
Process: com.example.app, PID: 2734
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=9001, result=-1, data=Intent { (has extras) }} to activity {com.example.app/com.example.app.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.toString()' on a null object reference
at android.app.ActivityThread.deliverResults(ActivityThread.java:3699)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3742)
at android.app.ActivityThread.-wrap16(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1393)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.toString()' on a null object reference
at co.apptailor.googlesignin.RNGoogleSigninModule.handleSignInResult(RNGoogleSigninModule.java:169)
at co.apptailor.googlesignin.RNGoogleSigninModule.onActivityResult(RNGoogleSigninModule.java:119)
at com.example.app.MainActivity.onActivityResult(MainActivity.java:31)
at android.app.Activity.dispatchActivityResult(Activity.java:6428)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3695)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3742)
at android.app.ActivityThread.-wrap16(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1393)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Now that react native is available to Android it would be great to have cross-platform support.
I believe I have copied everything from the example, I've gone through it a couple times now, but I am getting this error when the GoogleSignin object is called. Am I missing something? Has anyone else had this happen?
here is my log currently if it helps at all:
2015-11-30 14:11:15.846 [error][tid:com.facebook.React.JavaScript]
'Error: undefined is not an object (evaluating \'GoogleSignin.configure\')\n stack: \n _configureOauth
index.ios.bundle?…:971\n componentDidMount
index.ios.bundle?…:926\n notifyAll
index.ios.bundle?…:3800\n close
index.ios.bundle?…:14517\n closeAll
index.ios.bundle?…:4513\n perform
index.ios.bundle?…:4454\n batchedMountComponentIntoNode
index.ios.bundle?…:10032\n perform
index.ios.bundle?…:4440\n batchedUpdates
index.ios.bundle?…:14299\n batchedUpdates
index.ios.bundle?…:3570\n renderComponent
index.ios.bundle?…:10116\n ReactMount__renderNewRootComponent
index.ios.bundle?…:2834\n render
index.ios.bundle?…:1212\n renderApplication
index.ios.bundle?…:46702\n run
index.ios.bundle?…:46592\n runApplication
index.ios.bundle?…:46620\n __callFunction
index.ios.bundle?…:2574\n <unknown>
index.ios.bundle?…:2500\n guard
index.ios.bundle?…:2459\n callFunctionReturnFlushedQueue
index.ios.bundle?…:2499\n URL: http://localhost:8081/index.ios.bundle?platform=ios&dev=true\n line: 971\n message: undefined is not an object (evaluating \'GoogleSignin.configure\')'
Thank you for any help you can provide
Pretty sure I have everything configured correctly - when I load the app and login, I get the following error. I only get it once - afterwards, I will get the login button but clicking it will do nothing and I have to restart the simulator. Any idea what might be causing this?
I see this error in XCode - nothing on the react terminal.
2015-11-26 10:19:12.059 [info][tid:com.facebook.React.JavaScript] 'ERROR signin in', { error: 'Error Domain=com.google.GIDSignIn Code=-4 "(null)"' }
2015-11-26 10:20:10.269 blueprintNative[23369:2586201] LaunchServices: ERROR: There is no registered handler for URL scheme com-google-gidconsent-google
2015-11-26 10:20:10.271 blueprintNative[23369:2586201] LaunchServices: ERROR: There is no registered handler for URL scheme com-google-gidconsent
2015-11-26 10:20:10.271 blueprintNative[23369:2586201] LaunchServices: ERROR: There is no registered handler for URL scheme com.google.gppconsent.2.4.1
2015-11-26 10:20:10.272 blueprintNative[23369:2586201] LaunchServices: ERROR: There is no registered handler for URL scheme com.google.gppconsent.2.4.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.