OneSignal / OneSignal-WordPress-Plugin

OneSignal is a free push notification service for web and mobile apps. This plugin makes it easy to integrate your website with OneSignal Push Notifications. https://onesignal.com
Other
80 stars 42 forks source link

Official AMP Plugin Support - Workaround #258

Closed rgomezp closed 2 years ago

rgomezp commented 3 years ago

For the official AMP plugin, you should be able to manually set it up like a non-WP site by following this: https://documentation.onesignal.com/docs/amp-web-push-setup#how-to-set-up-web-push-on-amp-pages-non-wordpress

The only thing to note is you have to put the OneSignalSDKWorker.js file under a sub folder like /push instead of root so it doesn't fight for control with the AMP Service Worker. You should also add the service-worker-scope setting to the amp-web-push tag and set it to /push .

rgomezp commented 2 years ago

We now support the Official AMP plugin automatically