Re:Firebase expands to become a unified app platform
by kuschku on Wednesday May 18, 2016 @05:27PM
(#11726116)
> is especially tricky to get right without draining a user's battery by doing things like constantly polling the backend
One simple solution is giving each state a defined name, and keeping a socket open from mobile. If the connection is restarted, each side can name their current state, and the delta can also be easily synced.
Later on, changes can be directly transmitted via the socket.
(I am working on something like that currently myself).
One simple solution is giving each state a defined name, and keeping a socket open from mobile. If the connection is restarted, each side can name their current state, and the delta can also be easily synced.
Later on, changes can be directly transmitted via the socket.
(I am working on something like that currently myself).