Group Push Notification API
Send push notifications to a group of Indie Push subscribers using the Group Push Notification API.
Required:
You must follow the Indie Registration Guide instructions before using the API listed on this page. Group Push APIs will not work without first following the Indie Registration Guide
Prerequisites
1
Create a free Native Notify account
Create a free NativeNotify.com account to get your Native Notify App ID and App Token.
Send Group Push Notification API
Send push notifications to a group of Indie Push subscribers using the Group Push Notification API below.
Post to this URL:
https://app.nativenotify.com/api/indie/group/notification
Use this POST body:
{
subIDs: ['indie-sub-id-1', 'indie-sub-id-2', 'indie-sub-id-3'],
appId: app-id-number,
appToken: "app-token-string",
title: 'put your push notification title here as a string',
message: 'put your push notification message here as a string'
}
You can also send an optional pushData object with your post. Here's an example:
{
...,
pushData: '{ "yourProperty": "yourPropertyValue" }'
}
Notes:
- Push notifications will NOT work on an emulator/simulator. Push notifications only work on an actual device.
- If you are using a non-javascript based server language like Python, specify that this is an 'application/json' post type in your post header.