B
B
Bogdnan1232020-07-12 15:08:14
Google
Bogdnan123, 2020-07-12 15:08:14

Why does GoogleSignIn work on a local server, but after installing the apk on Android, it doesn't?

Hello! I created a small application using React-Native (expo), it has the ability to log in through a Google account (the data goes and is stored in Firebase . Everything works fine on local, authorization data comes to Firebase. (here is a link to the repository: click , code small) But when I built the application (using expo build:android), then dragged it to my emulator (android studio), it was installed, everything starts up fine, the login window appears, I click on the LogIn with Google button, and nothing happens, no reaction. LogCat, and here is the error there:

7-09 18:42:02.185  7912  7975 I ReactNativeJS: 'err:', { [Error: Please provide the appropriate client ID. See the documentation for more details https://docs.expo.io/versions/latest/sdk/google/#loginasync]
07-09 18:42:02.185  7912  7975 I ReactNativeJS:   code: 'ERR_GOOGLE_CONFIG',
07-09 18:42:02.185  7912  7975 I ReactNativeJS:   line: 112,
07-09 18:42:02.185  7912  7975 I ReactNativeJS:   column: 244,
07-09 18:42:02.185  7912  7975 I ReactNativeJS:   sourceURL: '/data/user/0/com.yourcompany.yourappname/files/38.0.0/cached-bundle-experience-%40dmitriykulikovskiy%2Fyour-app-slug1365844490-38.0.0' }


There is simply no strength, I even lost count of what day I have already sat down on this mistake. I can't figure out what the error could be when creating the Client Id keys. Maybe if someone understands, explain on your fingers how to create ClientId and Firebase correctly, although I don’t even know what to explain there if everything is simple there, but maybe I’m already as dumb as possible. THANK YOU SO MUCH FOR YOUR REPLY AND RESPONSE!!! I would be VERY grateful for your help!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question