Skip to content

Returning to app problem. #33

@berkaytndgn

Description

@berkaytndgn

Hello,

I'm not sure if my issue is a bug or something I'm doing wrong. I'm trying to implement authentication for my mobile game, and I will use the access token obtained from this process to authenticate with Firebase. I have taken the sample scene you provided as is.

Since I already have a Firebase project, my OAuth clients were automatically created in Google Cloud Console. I used them to configure the sample scene as required. The only change I made was modifying the RedirectURI to match my package name. I also set the same value as a scheme in the AndroidManifest.

When I test it in the editor, I can successfully sign in with Google, retrieve the access token without issues, and authenticate with Firebase using the token. However, when I restart the game, it acts as if I never signed in and recognizes me as an anonymous user. I'm not sure if this is expected behavior in the editor or if it's an issue on Firebase's side.

The main problem occurs when I build and run the game on a mobile device. When I initiate the login process, I see the "Fetching endpoint" log, and then I am redirected to the browser. I select my email address and click Continue on the consent screen. After that, a loading screen appears, but instead of returning to the app, I get stuck on Google's homepage.

When I check Logcat, I don't see any relevant logs because the OpenIDConnectTester_LoginCompleted event inside OpenIDConnectTester never triggers.

Is there something I might be doing wrong? I would appreciate your help.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions