In order for push notifications to work, 2 things are needed:
- The app administrator in Zendesk must enable the push notifications feature.
- Create a Zendesk trigger for push notifications
- Users must give permission in their devices
1.- Enabling push notifications in the admin panel
First of all, you must have push notifications enabled at an app level. Set the Push Notifications option to Enabled, then click save:
2.- Creating the Zendesk trigger
Make sure that you have your Zendesk API credentials. Then click on the Push Notifications tab, and click on the Create Push Notifications Trigger:
This will create 2 things in your Zendesk instance:
- A new Webhook will be added pointing to our server, that will look like this:
- A new Trigger will be added that will use the Webhook to send the push notifications when the ticket status is modified. It will look like this:
Of course, you can edit the webhook and the trigger in your Zendesk instance so that your push notifications are delivered only in specific cases.
3.- Giving permission to receive push notifications
As a user, open your app (using your browser), log in, and go to your Settings:
Then click Enable Push Notifications (if you are using iOS, you will have to install the app first):