- Home /
Firebase sign in anonymously in Unity Editor with same UserId
The recently released Firebase SDK 4.5.0 for Unity is now supported in Editor mode, which is great! However, when using the SigninAnynomouslyAsync() method from Editor, the UserID is not kept persistent like it is when called from iOS/device. Does anyone know how to preserve the UserId for this method running from the Editor? I guess the UserId is stored somewhere in Persistent store on device, but is it possible to set some kind of parameter to simulate this behavior from the Editor?
Got further in my investigations. The Firebase user authentication state is saved on iOS keychain, and therefore is not deleted when App & Data is deleted. The question now is - hos do I clean up my keychain for the App that is already deleted?
To the story, I should remember to mention that I have tried FirebaseAuth.SignOut() from the same App!
Answer by olonge · Oct 27, 2019 at 02:06 AM
@OneCept-Games Seems like this is now available in version 6.1.0. I haven't checked it out myself, but will be doing so very soon.
Found info here.
Edit: I've just upgraded from 5.4.1 to 6.6.0, and can conform that user-sessions are persisted in the unity-editor, which means that you can sign in as an anonymous user, and experience your app how anon-users would, right there in the unity editor. Yay !!