Comment to PWA Questions
-
I was able to setup a PWA by editing:
https://yourdomain.com/plugins_public/onesignal/manifest.json.php
also inject to every page:
<link rel="manifest" href="https://yourdomain.com/plugins_public/onesignal/manifest.json.php?bx_name=...">With this setup I could have multiple PWA's for site wide, for specific groups etc.
-
Ok when I looked into the OneSignal folder I found these two files and am wondering which I should use:
OneSignalSDKUpdaterWorker.js.php
OneSignalSDKWorker.js.php
I am assuming it would be the second one, since the first is for updating apparently.
-
these are onesignal files not directly related to your PWA.
correct files to edit or create are:
https://yourdomain.com/plugins_public/onesignal/manifest.json.php
also inject to every page:
and for service worker you may create a sw.js file and put it to the root web folder.
-