Problems using Firebase Authentication

On my login screen, I only have one button to log in with my Google account.
Blocks I used:

Login:
The home screen checks whether the user is logged in. If so, they are taken to the main screen.

Once logged in (Google Sign In), the Login Success block displays the user’s Get ID Token, and the Got ID Token section redirects them to the main screen:

Main Screen:
On the main screen when it boots, I check again to see if the user is logged in. If they are, I get the Get Current User message. If not, it returns to the login screen.

Create a global variable uid and in Current User Success I obtained the Get Id Token, then I associated the global uid with the User ID, lbl_nome with get name and img_perfil with get profile Picture

In Firebase_Authentication Got Id Token follows my project Bucket and firebase Token for registration purposes.

I downloaded the APK. When I click the Google button, it closes automatically. If I log in a second time, it does the same thing.
I checked on Firebase and the accounts were authenticated

Are my codes correct? If not, where is the error?

You mean that after clicking Sign with Google button the app closed without getting the Google account?

That’s right. When you click the button and select your Google account, even if you log in a second time, it closes by itself.

Then try removing close screen blocks just open screen normally

If you are closing screen 1 then that’s explain why your app is crashing if you are in screen 1 then only use { open other screen name } block

1 Like

My dears, I did as you informed and it continues to be the same.

Send me your aia file via PM let me see, if you don’t mind

It’s normal Firebase behavior, after logging in once, the account stays saved on the phone, and you don’t need to sign in/up again, but instead check if the user is already logged in and retrieve the data if so.

Hi Fallen_Media,
what you’re saying isn’t necessarily true, you can also close Screen 1 as long as you correctly switch to another one.

Just some minutes

Have you enabled Google Sign In firebase Authenticate?

Since the Google logo is visible, I’d say yes.

Something isn’t right with the firebase or Json file

blocks (29)

Can re-create your firebase project? The login for me not working

Delete your Json from this thread please. Fast as you can

I mean can you Recreate your project again for sign up?

It could still be obtained from the AIA

EDIT: I have removed them

I replaced the json using my own firebase project and it works

Ooooowoh that’s fast :rofl::rofl:

Anyway @Carlos_Alberto_Leonel do crosscheck in your firebase project, or Create it again

Guys, I deleted the project and created another one.
Follow the steps:
1 - After naming it, I added the app to Android.

I registered and downloaded the json file.

2 - After that I went to Creation and Authentication:
When I activated it, a message appeared to download the updated Json

And yet it keeps closing the screen if you go to the main screen

I’m just about to give up on this.
If I send the AiA to you without the bank information, can you help me?

But is the account being created correctly?