Pushpad Express: Getting started
First of all create a new project and select your sender:
- The easiest way is to select Shared Sender. This solution doesn't require any configuration but has some limitations: for example a user that has subscribed to the push notifications of multiple websites that use the Shared Sender will always see pushpad.xyz as the sender without distinction between the various websites.
- A better solution is to create your own subdomain on Pushpad. To do that you must create a new sender and enter a Pushpad subdomain of your choice as the domain (e.g.
example.pushpad.xyz). You also need to enter the GCM API key and APNs certificate as described in the Certificates and keys section.
After the project is created, you get a link: you can share it to allow users to subscribe to push notifications.
For example you can copy and paste the following code anywhere in your website to display the link:
<a href="https://pushpad.xyz/p/PROJECT_ID">Push Notifications</a>
PROJECT_ID must be replaced with your project ID: you can find it in the project settings.
If you have set a subdomain in your sender settings the user will be redirected to it, but if you prefer you can also use your subdomain directly:
<a href="https://SUBDOMAIN.pushpad.xyz/p/PROJECT_ID">Push Notifications</a>
When users click the link Pushpad automatically subscribes them to push notifications and sends them back to your website.
You can even allow the user to manage all its notifications preferences for your website in one place:
<a href="https://SUBDOMAIN.pushpad.xyz">Push Notifications</a>
Read the Sending push notifications section to learn how to send push notifications.