Documentation

Send Test Notification


Input your device token and select your app to send a test push notification:

Note: You can specify a topic instead of a device token (i.e. /topics/news). Also, if your app is not automatically detected, please manually copy the Secret API Key from the Dashboard and paste it into the form.

Check if your device received the notification. Did it work? If not, contact us, we'll be glad to help.

Test Notification Payload


You can replicate the functionality of this demo by sending a POST request to our Send Notifications API with the following body:

{
    "to": "a6345d0278adc55d3474f5", // Your device token
    "data": {
        "title": "Test Notification", // Notification title
        "message": "Hello World!" // Notification body text
        "url": "https://pushy.me/", // Opens when clicked
        "image": "https://example.com/image.png" // Optional image
    }
}

Modify Receiver Logic


Optionally modify the push receiver logic by replacing the contents of service-worker.js with your own implementation.

You can base off of our original pushy-service-worker.js and modify as desired.

Setup Complete


Congratulations on implementing Pushy in your website!

Now, all that's left is to setup your backend. Head on over to the Backend Setup guide to begin persisting device tokens as well as implementing the logic for sending push notifications to your users.