How to send Transactional Web Push Notifications?Last Updated: July 05, 2018
To send push notifications to a specific user, you can use our REST API. For example, transactional push notifications are used by SaaS applications to alert a specific user about their renewal dates, or specific message about his account.
Here is a how-to guide to implementing transactional web push notifications with a sample use-case. It’s simple!
Use Case – Adding Web Push to a Simple Web-App.
Step 1 – Enabling the subscription prompt
Step 2 – Mapping your internal user to the push subscriber
Remember to call the Engagespot.clearUser() function on the logout page.
Step 3 – Sending the notification
Now you have the subscriber id of every user who has enabled notifications on their browser. So whenever you need to send a push notification to this user, use our REST API with send_to parameter as identifiers and a separate identifiers JSON array.