rock-solid / wordpress-pwacommerce

PWACommerce - WooCommerce Mobile Plugin for Progressive Web Apps & Hybrid Mobile Apps
http://pwacommerce.com
GNU Lesser General Public License v3.0
20 stars 6 forks source link

Service worker installed #6

Open tmblog opened 6 years ago

tmblog commented 6 years ago

Hello this is more a question than bug/perhaps it could be. I have installed the lite version using the woocommerce 3.4.4 Do I need to create my own service worker? In the settings screen there is a checkbox that says service worker installed, I am not sure what to do. Leaving it checked or unchecked doesn't make a difference neither way does it prompt me to save to home screen on a mobile device. Couldn't find the docs for the plugin either, will consider purchasing the pro once I can figure out how to use it. Cheers.

WordPress / WooCommerce setup:

Smartphone:

anghelalexandra commented 6 years ago

@tmblog Have you also copied the sw.js (https://github.com/appticles/wordpress-pwacommerce/blob/master/sw.js) file to the root of your domain?

This part is rather tricky because you can't use a sub-folder (such as https://domain.com/subfolder) and it works only on HTTPS.

Also, please check if the service worker is successfully registered using Chrome Dev Tools (set the device to an iPhone or Android phone and delete cookies before checking): https://developers.google.com/web/fundamentals/codelabs/debugging-service-workers/#introducing_the_application_tab