Is it possible to use a form in a wordpress pwa. I am using the SuperPWA plugin and have a form on the site, the main focus on the site to collect data which is sent to google sheets..works fine. Will I be able capture data if the user is out of connectivity.
Ted
Is it possible to use a form in a wordpress pwa. I am using the SuperPWA plugin and have a form on the site, the main focus on the site to collect data which is sent to google sheets..works fine. Will I be able capture data if the user is out of connectivity.
Ted
Share Improve this question asked May 20, 2020 at 12:32 tbcguytbcguy 31 bronze badge 1- That would depend on the form plugin. They would need to be designed to work in a PWA. You should ask the plugin author. – Jacob Peattie Commented May 20, 2020 at 12:37
1 Answer
Reset to default 0By default the service worker does not proxy (cache) POST requests so no, by design, it's not possible. However... More than one PWA do do just this. As one of the comments says, you need to contact the form plugin author for support.
Reference:
https://stackoverflow/questions/35270702/can-service-workers-cache-post-requests
https://developer.mozilla/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742416582a4439860.html
评论列表(0条)