Hello guys,
All very well?
I need to send push notifications to users already registered in our commerce.
We have already configured a serviceWorker and saved the data returned when the user authorizes the use of that device.
To send notifications, we found the web-push lib (https://www.npmjs.com/package/web-push), however, we were unable to use it.
Has anyone ever needed to send push notifications and do you have a solution for us?
Web push is tricky in Salesforce ecosystem since the native tools focus heavily on mobile push/apps. You might be able to solve this natively in Commerce Cloud via Flow Builder and sending an HTTP Callout action to a backend that will sign, process, and deliver your push.
If you have Marketing Cloud Engagement, you can try our solution,
MCX Push. It gives you a drag-and-drop custom activity in Journey Builder to send push notifications to websites with a service worker.
It will involve connecting your Commerce Cloud org to a Marketing Cloud business unit via MCC (Marketing Cloud Connect), then use the 'Salesforce Data Event' entry source to listen to changes in your Commerce Cloud and inject them in your journeys.
If you're curious, you can read more on AppExchange (
https://appexchange.salesforce.com/appxListingDetail?listingId=4b739d87-2910-43be-875b-ad0027c83a09).