Open Source Discussions
Join open source discussions to collaborate with developers, share insights, and stay informed about cutting-edge technologies and community initiatives.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Background sync with pwa in angular

0 Likes
1,128

I have use springBoot for backend and angular for frontend to perform form data send from angular to springboot to database.

I use pwa for web apps and offline syncronization( when internet is not available then form data move to indexed db and then when internet is available then data move to database from indexed db and delete that data from indexeddb).

I make web apps but I can not use offline syncronization because of getting some error in angular.

ERROR: Property 'sync' does not exist on type 'ServiceWorkerRegistration'.

113 .then((swRegistration) => swRegistration.sync.register('post-data'))

0 REPLIES 0