Just convert the above said suggestion in blocks mode , very simple.
- Add data's
- If network is connected, use web block to save or save in tinydb
- Once network connected, use web part to send and once submitted just remove the tag from tinydb using clock part. So simple
And I have created a small app based on the above suggestion. If possible, just check it and tell us whether is it in your expectations