Si no hay Internet guarde los datos y cuando vuelva a detectar una conexión se envíen (If there is no Internet, save the data and when a connection is detected again, they are sent)

Hola a todos, tengo un formulario de revista de supervision en una App creada con app inventor, pero al momento en que envío los datos y si no hay conexión a Internet se pierden los datos que envié, sin embargo quiero hacer que en caso tal no haya conexión de Internet, me guarde esos datos y cuando vuelva a detectar una conexión de Internet se envíen dichos datos más no se pierdan.

Si alguno me puede ayudar quedo pendiente muchas gracias.

Before sending the data, test for network connection.
If no network connection, save data locally (tinydb or file), and store tag/filename to a variable
Start a clock that keeps testing for network connection
If network == true
Stop the clock
then recall the data using the variable, and send the data

2 Likes