mercredi 8 février 2017

Need Firebase Database behaviour clarification when inside a Service

Vote count: 0

I am testing a feature which requires a Firebase database write to happen at midnight everyday. Now it is possible that at this particular time, the client app might not be connected to the internet.

I have been using firebase with persistence off as that can potentially cause issues of stale data in another feature of mine.

From my observation ... If i disconnect the app before the write and keep it this way for a minute or so, Firebase eventually reconnects when i turn on the connectivity again and performs the write.

My main questions are..

will this behaviour be consistent even if the connectivity is lost for quite a few hours?

Will firebase timeout?

Since it is inside a forever running service does it still need persistence to ensure that writes are not lost? (assume that the service does not restart)

If the service does restart... will the writes get lost?

asked 21 secs ago

Let's block ads! (Why?)



Need Firebase Database behaviour clarification when inside a Service

Aucun commentaire:

Enregistrer un commentaire