GithubHelp home page GithubHelp logo

Comments (9)

argzdev avatar argzdev commented on June 16, 2024 1

Hey @Fatorin, thanks for reaching out. The player session should remain after a successful login, there should be no need for a relogin. That said, I've tested this out with our quickstart-unity and it seems to work correctly. There might be a configuration issue on your side, you could test out our quickstart to get a code reference on how this is setup. Make sure your code is monitoring the StateChanged right after initializing Firebase:

e.g.:

    protected void InitializeFirebase() {
      DebugLog("Setting up Firebase Auth");
      auth = Firebase.Auth.FirebaseAuth.DefaultInstance;
      auth.StateChanged += AuthStateChanged;
    }

Also could you check if you allowed the permission to store the credentials in the Apple Keychain? There should be sort of a pop up dialog asking for this permission when you log in the first time.

Let me know if this helps!

from firebase-unity-sdk.

argzdev avatar argzdev commented on June 16, 2024 1

That is an interesting issue. Thank you for sharing how you were able to resolve this, @Fatorin. I'm glad you were able to work around it.

from firebase-unity-sdk.

google-oss-bot avatar google-oss-bot commented on June 16, 2024

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

from firebase-unity-sdk.

Fatorin avatar Fatorin commented on June 16, 2024

@argzdev Thank you for your reply. I encountered an error message when Firebase was saving credentials.
SaveUserData: Error -67030 adding com.xxxx.oooooooo.xxxxxbeta.F2TvZ5cmdn8.firebase.auth/__FIRAPP_DEFAULT: invalid Info.plist (plist or signature have been modified)

Probably this Info.plist file only works on iOS. Maybe I should manually modify the Info.plist file to use it on macOS?

from firebase-unity-sdk.

argzdev avatar argzdev commented on June 16, 2024

From my understanding, this type of issue "Invalid Info.plist" can only occur whenever the app is code signed. Does the issue happen after building the macOS version prior to code signing? Or after you've performed code sign on your app?

from firebase-unity-sdk.

Fatorin avatar Fatorin commented on June 16, 2024

I built the macOS development version on M1, but I didn't use code signing for my application because I wanted to test if login functionality works first. Should I do it?

from firebase-unity-sdk.

argzdev avatar argzdev commented on June 16, 2024

That's interesting, is the issue present when simply testing in the Unity Editor? or when you've built and run the app? I'm testing on an intel machine so that could be why I'm unable to reproduce the same behavior.

from firebase-unity-sdk.

Fatorin avatar Fatorin commented on June 16, 2024

When I run my game and login on Unity Editor, Firebase does not output any error messages.

Even after I restart the game, it also can auto-relogin, just as I expected.

However, if I build the application for the Apple Silicon version, I will get an error message when I successfully login.

But I can't auto-relogin when I restart the game.

Unfortunately, I don't have an Intel machine to try the Intel 64-bit version.

from firebase-unity-sdk.

Fatorin avatar Fatorin commented on June 16, 2024

I found the same problem in an old issue. I should sign my application and update the Xcode project settings.
Issue

from firebase-unity-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.