Skip to content

The database only works when I sign out or when i'm without auth. #40

Closed
@bacabrother

Description

@bacabrother

The database only works when I sign out, so the changes I make are released as soon as the signout occurs.

 public void AddInfo(string value) {
       db.GetReference("test1").Child(userId).SetValueAsync(value);
   }

the child appear in the database only when I'm signout.

I also noticed that when I send something to the database without authenticating, when I try to authenticate after this, some error occurs

public void OnlineList() {
     db.GetReference("WhoIsOnline").Child(fbAuth.userId).SetValueAsync("");    
     db.GetReference("WhoIsOnline").Child(fbAuth.userId).OnDisconnect().RemoveValue();
 }

When I use this in the Start(), and then I try to auth the app crash, but seems that the auth works because when I restart the app the auth isnt null

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