Just like a chat messaging application, in offline mode we can type and send any chats and these chats will be sent automatically when in online mode.
My first question is, how is the best way to store pending data (chat, for above example) before it gets sent when the device is online?
The second question is, how can to start send pending data when the device is online? any triggers? or something like scheduler which work in background? Thanks in advance.