Skip to content

Firebase Auth + Database setup in unity editor failure #41

Closed
@xysverma

Description

@xysverma

I am trying to make firebase work in unity editor but have no success so far. My rules setup to test database is like this

{
  "rules": {
    ".read": false,
    ".write": false,
    "unity-tests": {
      //This area is just for testing things
    	".read": "auth != null",
      	".write": "auth != null"
    }
}

I created service account, placed p12 file and also did initialisation as given in doc. I am facing 2 problems.

  1. When i login, i am getting firebase user ID same as my email address and looking at console, it seems like user never logged In (Using Email / Password login)
  2. When i connect to database, it responds in almost a min with error "Error obtaining service credential. Attempting unauthenticated access"

Logs screenshot attached. How can i make it work and i am wondering what i am doing wrong ?

P.S: Its working fine on iOS device & android too. Its the editor which i am trying to work with for faster development.

unity logs

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