Categories
Push Notification

How to customize OneSignal prompt text : use acceptButton & cancelButton instead of acceptButtonText & cancelButtonText

Recently, I had to initialize OneSignal with a custom call and realized that the custom text for prompt was not working. I wanted it to say “No Thanks” instead of the cancel button as per the screenshot below. I was using code as per the OneSignal documentation, as per the given screenshot below. As per

Categories
Progressive Web App(PWA)

How to integrate OneSignal with PWA plugin in WordPress

If you are using the PWA plugin on your website, you may have to do a few changes to the website to get OneSignal push notifications to work properly. PWA implementation needs adding a service worker to the site. OneSingal also needs to have service worker implementation so that, it can allow users to subscribe