WICG / background-sync

A design and spec for ServiceWorker-based background synchronization
https://wicg.github.io/background-sync/spec/
Apache License 2.0
640 stars 85 forks source link

sync when online #162

Closed snuffer82 closed 4 years ago

snuffer82 commented 4 years ago

Hi, I have created a pwa that allows data collection through a form in an offline page and that sends the data to a server when it returns online. Now I would like to implement background sync to send data even if I close the app. What am I doing wrong?

online page-> form.html offline page-> offline.html indexeddb and post request-> syncb.js

thank you very much for your time