AppWerft / Ti.GoogleSignIn

Use the native Google Sign In SDK in Appcelerator Titanium. 🚀
Other
24 stars 12 forks source link

GoogleSignin with Production and developement #8

Closed AlokGupta007 closed 7 years ago

AlokGupta007 commented 7 years ago

Hi,

This is not working for me. I am trying to create login but giving error. Here is my client ID Google.initialize({ clientID : "578497211426-4272anhsnpu4bu80qv7detbgscpp8lql.apps.googleusercontent.com", });

And the error is {"type":"error","source":{"bubbleParent":true,"apiName":"Ti.Module","invocationAPIs":[],"_events":{"connect":{},"error":{},"disconnect":{},"login":{}}},"message":null,"status":10,"success":false,"bubbles":false,"cancelBubble":false}

Not Getting why the error is coming. Please help me out this.

Thanks Alok

chmiiller commented 7 years ago

Where did you get this clientID from? You should use the Web version from https://console.developers.google.com/apis/credentials screen shot 2017-06-14 at 17 23 04

I've created those through Firebase console. There you will need to specify your app bundle ID and SHA certificate fingerprints from your distribution key

AppWerft commented 7 years ago

I think a server key.

AlokGupta007 commented 7 years ago

Yes this is the server key. as shown in screenshot.

On Wed, Jun 14, 2017 at 9:56 PM, Rainer Schleevoigt < notifications@github.com> wrote:

I think a server key.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AppWerft/Ti.GoogleSignIn/issues/8#issuecomment-308484994, or mute the thread https://github.com/notifications/unsubscribe-auth/AIIJnyZndxJRVIxG6U80rQtJ3uUCdQUSks5sEAmfgaJpZM4N6A6Z .

drachma commented 7 years ago

I have the same issue. This his a Key problem?

chmiiller commented 7 years ago

You shouldn't use "server key" you should use the "web client" key

SamBellerose commented 7 years ago

I have the same issue. @AlokGupta007 and @drachma were you able to fix this problem? I'm using a web client key also