Campaigns

Templates

You can configure templates to re-use notifications and use them in campaigns. The process of creating a template is almost identical to creating a regular notification. The only difference is that instead of sending the notification to your subscribers, you save it as a template! 

Go to Campaigns > Templates > Create New Template. First, you enter a name for your template and click 'Create new notification'. Next up, choose a segment (if required and possible), enter your message subject and message, and fill out the Time to Live and Vibration Pattern under 'Settings'. Once you're done, you can save your template with the button in the top right corner.

Whenever you are setting up a campaign, the template will be available in notification blocks (Go to Timeline > add new step (+ sign) > click notification). Similarly, when you create a plain notification, you can pre-fill it according to the template (similar to the image above).

Verify your setup

You can verify if you set everything up correctly by navigating to https://yourdomain.com/. If you see a push notification opt-in request, everything is working! That’s all, your website is now ready to send push notifications!

If you do not see an opt-in request, you can check whether the code snippet and javascript file were correctly added. Navigate to https://yourdomain.com/sw.js. Here you should find the following text:

importScripts('https://storage.googleapis.com/push-pro-java-scripts/pushpro-sw.js');

Next up, you can verify whether you correctly added the code snippet. On https://yourdomain.com/, right-click anywhere on the website and select “Page Source”. Here, you should find the following text:

<script></script>
window.__pushpro = {
site_uuid: "your-unique-identifier",
}

https://storage.googleapis.com/push-pro-java-scripts/pushpro-lib.js">

Ready to take PushPro for a spin?
Get started for free now.
Sign Up

Drop us a mail

Thank you! Your submission has been received!
Something went wrong while submitting the form. Please try again or contact support@pushpro.io

Social Channels