jaychang0917 / SimpleAuth

A easy to use social authentication android library. (Facebook, Google, Twitter, Instagram)
224 stars 51 forks source link

Google is not working #3

Closed kiyos1221 closed 6 years ago

jaychang0917 commented 6 years ago

any error messages?

kiyos1221 commented 6 years ago

Nothing is displayed, when I call connectWithGoogle it shows the account chooser and stuck there

jaychang0917 commented 6 years ago

did you try the demo project? is it working?

santhoshrao519 commented 6 years ago

Google integration is not working.getting following

[GetToken] GetToken failed with status code: BadAuthentication

[GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION. Account: , App: com.android.vending, Service: androidmarket fbl: Long live credential not available.

jaychang0917 commented 6 years ago

pls provide the demo project

santhoshrao519 commented 6 years ago

i have used the same library as demo, even though it is showing above error. please help

jaychang0917 commented 6 years ago

did you try with another device?

santhoshrao519 commented 6 years ago

ya, i have tried on different devices,

jaychang0917 commented 6 years ago

debug build variant? correct SHA1?

santhoshrao519 commented 6 years ago

i have tried with release build and correct sha1

jaychang0917 commented 6 years ago

your issue looks similar to this

santhoshrao519 commented 6 years ago

do i really need to add google-services.json file in my app?

jaychang0917 commented 6 years ago

no need

jaychang0917 commented 6 years ago

did you try this repo demo? is it working?

santhoshrao519 commented 6 years ago

no, it is not showing when i click on "Connect Google" green button. It is just showing list of google accounts, but when i clicked on a account, nothing happens

jaychang0917 commented 6 years ago

you're using Android Studio 3.0+?

santhoshrao519 commented 6 years ago

yes android studio 3.0.1

jaychang0917 commented 6 years ago

I have no idea... I just tried this repo demo with debug build variant in two devices, works as expected.

santhoshrao519 commented 6 years ago

okay, please do share debug build instructions for sha1 key and client auth id.

jaychang0917 commented 6 years ago

clone this repo, then build

santhoshrao519 commented 6 years ago

i have downloaded and imported this project into studio but when i click on google button, still not working

santhoshrao519 commented 6 years ago

do i need to change googleWebClientId in build.gradle file when i download this repo?

n1k3c commented 6 years ago

any update?

santhoshrao519 commented 6 years ago

Not working yet..

On Jan 6, 2018 07:53, "Nikola Curilovic" notifications@github.com wrote:

any update?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jaychang0917/SimpleAuth/issues/3#issuecomment-355716281, or mute the thread https://github.com/notifications/unsubscribe-auth/AMt8XMHgTsqUgYbEr5r4h7GJO59opH7Zks5tHtkHgaJpZM4Q-1q3 .

jaychang0917 commented 6 years ago

@santhoshrao519

do i need to change googleWebClientId in build.gradle file when i download this repo?

no need

using a real device (which model?) or emulator?

santhoshrao519 commented 6 years ago

Real device..samsung

On Jan 6, 2018 09:34, "Jay" notifications@github.com wrote:

@santhoshrao519 https://github.com/santhoshrao519

do i need to change googleWebClientId in build.gradle file when i download this repo?

no need

using a real device or emulator?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jaychang0917/SimpleAuth/issues/3#issuecomment-355721363, or mute the thread https://github.com/notifications/unsubscribe-auth/AMt8XIAodbcIajkDY0luJ84aCt_tL-kzks5tHvDCgaJpZM4Q-1q3 .

jaychang0917 commented 6 years ago

which model?

santhoshrao519 commented 6 years ago

Samsung Galaxy s6 edge..not even working on other. Mobiles too

On Jan 6, 2018 09:39, "Jay" notifications@github.com wrote:

which model?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jaychang0917/SimpleAuth/issues/3#issuecomment-355721570, or mute the thread https://github.com/notifications/unsubscribe-auth/AMt8XFbI6kPIRRcO41Ibo6l7JmgT6oOVks5tHvH7gaJpZM4Q-1q3 .

jaychang0917 commented 6 years ago

what is your android debug keystore sha1? keytool -exportcert -keystore ~/.android/debug.keystore -list -v

jaychang0917 commented 6 years ago

You must

santhoshrao519 commented 6 years ago

I did as same for many times ...but no luck

On Jan 6, 2018 11:06, "Jay" notifications@github.com wrote:

You must

  • using a google WEB client id
  • create an Android client, and fill out the correct sha1 and package name

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jaychang0917/SimpleAuth/issues/3#issuecomment-355725020, or mute the thread https://github.com/notifications/unsubscribe-auth/AMt8XNbXlZ4BaUpbYm4CxxxU5w8vDwU1ks5tHwZxgaJpZM4Q-1q3 .

jaychang0917 commented 6 years ago

@santhoshrao519 if you're testing this repo demo, you may provide me your android debug keystore sha1. I am not sure if the sha1 is same

mikrop commented 6 years ago

Hi @jaychang0917 i have the same problem,

1) Do I Generate Client ID Well? https://github.com/mikrop/uctenkova-smenarna-android/blob/master/Bez%20n%C3%A1zvu.png 2) When I put a custom googleWebClientId into the build.gradle file 3) I will overwrite package = "cz.mikropsoft.android.uctenkovka.smenarna" in AndroidManifest.xml 4) I will deploy an application to my phone and debug responce, I get the com.jaychang.sa.GoogleAuthActivity # onActivityResult parameter resultCode = 0 (operation canceled).

What am I doing wrong? Thank you for answer! Michal

jaychang0917 commented 6 years ago

@mikrop using a web client id? Don't use android client's one

mikrop commented 6 years ago

It works! Thank you

jaychang0917 commented 6 years ago

I closed it. Please feel free to reopen the issue if you have any questions.

santhoshrao519 commented 5 years ago

Hi Jay, Facing an issue while login with google+. When a select a user email from the list, nothing happens

sergio11 commented 5 years ago

@jaychang0917 @santhoshrao519 I am experiencing the same problem a few days ago. I have not changed anything at all (the Google Play Services version is the same) and it has stopped working. I upload the following image so you can see the response of the API.

image

sergio11 commented 5 years ago

I have tried everything: