Firebase-Android, could not save data after a long downtime

This question relates to this issue of Firebase-Android, how to synchronize data when resuming after losing a connection?

Step by step:

  • First I use the email method in Auth Activity
  • In Timeline activity, I add a record.

Everything looks good. But if I hide the application for about 24 hours, then resume the application in the timeline mode and add a new record, I got an error: "java.lang.Exception: Permission denied". I am sure there is nothing wrong with the new data, but:

path / {
    read() = true;
    write() = isSignedIn();
}
isSignedIn() = auth != null;

So, I think that after a long downtime, maybe the session was a timeout.

Do you have the same problem and how to overcome it?

+4
1

, ( + ), , (onResume event of Activity)

+1

Source: https://habr.com/ru/post/1621013/


All Articles