Skip to content

[Bug] Permission to Real-Time Database denied among different Android sessions with Firebase 13.0.0 #1325

@fmoyano

Description

@fmoyano

Description

After updating Firebase to 13.0.0 I started noticing that I was losing permission access to the real-time database across game sessions. The only solution was to sign out and sign in again, or wait an unspecified amount of time to get access to the database.

Downgrading to 12.10.0 solved the issue, without any other change.

Reproducing the issue

  1. Sign in with Google using Google Play Games v2
  2. Write something to the Real-Time Database specific for that Firebase User ID
  3. Exit the game
  4. Start the game: it takes an unspecified amount of time (usually long, in the order of minutes) to get the right permissions to write or read to the real-time database. In the meantime, you get a permission error even when the auth object was correctly persisted (auth != null and auth.CurrentUser is the same as the previous session)

Firebase Unity SDK Version

13.0.0

Unity editor version

6000.0.50f1

Installation Method

Unity Package Manager

Problematic Firebase Component(s)

Database

Other Firebase Component(s) in use

Authentication

Additional SDKs you are using

Google Play Games v2

Targeted Platform(s)

Android

Unity editor platform

Windows

Scripting Runtime

IL2CPP

Release Distribution Type

Pre-built SDK from https://firebase.google.com/download/unity

Relevant Log Output

If using CocoaPods for Apple platforms, the project's Podfile.lock

Expand Podfile.lock snippet
👀 Replace this line with the contents of your Podfile.lock!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions