Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[com.nianticlabs.pokemongo] Google sign-in immediately fails and "Unable to authenticate" #1979

Open
Espionage724 opened this issue Jul 8, 2023 · 14 comments

Comments

@Espionage724
Copy link

Espionage724 commented Jul 8, 2023

Affected app

  • Name: Pokémon GO
  • Package id: com.nianticlabs.pokemongo

Describe the bug

  • When trying to log-in with Google, Pokemon GO fails and says "Unable to authenticate. Please try again."

To Reproduce

  1. Start Pokemon GO
  2. Fling the date of birth year randomly to 1980 or something 18+
  3. Tap either Returning or New Player
  4. Tap Sign in with Google
  5. "Unable to authenticate. Please try again."

Expected behavior

  • Pokemon GO to report the Google account email briefly confirming the sign-in, and to continue loading the game

Screenshots

System

  • Android Version: 20
  • Custom ROM: LineageOS for microG (lineage-20.0-20230704-microG-enchilada)

microG

  • microG Core version: 0.2.28.231657
  • microG Self-Check results: All ticked

Additional context

  • Happens with Ingress too (another Niantic game)
  • I don't believe this interacts directly with Play Store Games for achievements or anything; it just uses Google for the log-in authentication
  • My PoGO account with Google sign-in is active, not banned, isn't restricted in any way afaik, and worked fine with Gapps a few hours ago today
  • Pokemon Trainer Club sign-in and seemingly PoGO itself work fine with microG. I would like the Google sign-in to access my main PoGO account and I don't believe I can convert it to another sign-in
  • [com.nianticlabs.pokemongo] Can't enable adventure sync in pokemon go #1774 indicates Google sign-in worked for them
@paolo-caroni
Copy link

"For them" not for me, I don't have a Pokémon Go Google profile, my main profile is a Pokemon Trainer Club account. Normally I don't use google if i have an alternative. So I cannot confirm or deny this bug.

@Espionage724
Copy link
Author

Does anyone have any ideas specifically what's wrong? Is it a missing API? Is this bugged when it should be working?

The only requirements to test is a Pokemon GO apk and a Google account.

@oOHiyoriOo
Copy link

I have the same problem, I did dump a log cat of the login and found:

AuthSignInClient        com.nianticlabs.pokemongo            W  Could not launch sign in Intent. Google Play Service is probably being updated...

@ale5000-git
Copy link
Member

ale5000-git commented Sep 12, 2023

It should work with the latest code (not released yet); for those that want to try there is the official nightly build.

@panki27
Copy link

panki27 commented Sep 28, 2023

I was able to get Ingress working using a Facebook account, but I first had to enable the SafetyNet feature in microG.

EDIT: Well, it was stuck trying to load the tutorial. After restarting, login does not work anymore, wih microG claiming "Attestation: Failed: Integrity check failed".

@Espionage724
Copy link
Author

It should work with the latest code (not released yet); for those that want to try there is the official nightly build.

This didn't work for me on OnePlus 6 (enchilada), LOS4mG (20230907), and the latest versions of Pokemon GO and Monster Hunter World as of 2 days ago. I tap Google to log-in, both games show the account prompt with my Google account/email, and when I press it it both games do something for about a minute and then fail to authenticate.

I didn't test Trainer Club log-in with Pokemon GO to see if I was missing anything, but I'm mostly sure I had everything configured (everything was checked under self-check for microG, PoGO and MHN had all permissions enabled, device profile was Auto/Native, SafetyNet and GCM enabled). PoGO nor MHW never showed up under mG's SafetyNet section so I'm guessing the failure is during the account log-in phase.

@paolo-caroni
Copy link

paolo-caroni commented Sep 29, 2023

For me, with the last version on f-droid I have the ability to connect my pokemon trainer club account to a google account.
Then I have disconnected and correctly reconneted with google. I think that you can close this issue.

Edit: sadly I cannot de-link the google account from my pokemon trainer club acxount. But I think that is normal, niantic ask to connect other google account to remove old one (T_T)

@Espionage724
Copy link
Author

Espionage724 commented Sep 29, 2023

I can use Google sign-in with Ingress (2.125.2), but not Pokemon GO (0.283.1) nor Monster Hunter Now (61.0).

That's surprising, I figured all 3 would either work or not work, but I wonder why only Ingress does?

Edit: PTC/Trainer Club sign-in works for Pokemon GO, just not Google. MHN only has Google sign-in.

@paolo-caroni
Copy link

paolo-caroni commented Sep 29, 2023

I can use Google sign-in with Ingress (2.125.2), but not Pokemon GO (0.283.1) nor Monster Hunter Now (61.0).

That's surprising, I figured all 3 would either work or not work, but I wonder why only Ingress does?

@Espionage724 What version of gmscore you have? 0.2.29.233013?

@Espionage724
Copy link
Author

0.2.29.233013-dirty (used the nightly apk)

@paolo-caroni
Copy link

0.2.29.233013-dirty (used the nightly apk)

Very strange, same version of mine, that work.

@AARtwo
Copy link

AARtwo commented Oct 6, 2023

I was able to use the Trainer Account to login, but Google, or Facebook fails, however if I login to a Trainer Account - log out, then immediately login to Facebook, it works...until you restart the app.

@qqizai
Copy link

qqizai commented Oct 25, 2023

I have the same problem, Monster Hunter Now (62.1) only login by Google, but it don't work.

GmsCore:

  • microG Core version: 0.2.28.231657

System

  • Android 10, Google Pixel 3XL

@paolo-caroni
Copy link

Since yesterday I was not able to connect to Pokémon Go, not with PTC, not with Google.
This is surely because of SafetyNet deprecation since 1 Feb 2024.
I hope that Play Integrity will be supported soon, but if you have hurry, you should install original Play Store, replacing fakestore.
Personally I probably won't do that, let's see how much I'm dependent to this game.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants