Indie Push Notification APIs
Send Indie Push notifications. Check for successfully registered Indie Push IDs. Delete Indie Push Sub IDs.
Required:
You must follow the Indie Registration Guide instructions before using the APIs listed on this page. Indie Push APIs will not work without first following the Indie Registration Guide
Prerequisites
Create a free Native Notify account
Create a free NativeNotify.com account to get your Native Notify App ID and App Token.
Send Indie Push Notification API
Use this API to send custom push notifications to individual users you have successfully registered with Native Notify.
Post to this URL:
https://app.nativenotify.com/api/indie/notification
Use this POST body (replacing the 'dateSent' with your current date as a string):
{
subId: "unique-user-id-string",
appId: app-id-number,
appToken: "app-token-string",
title: "Push title string",
message: "Push message string",
}
You can also send an optional pushData object with your post. Here's an example:
{
...,
pushData: '{ "yourProperty": "yourPropertyValue" }'
}
Get ONE Successfully Registered ID
Use this API to check if you successfully registered your unique user ID with Native Notify.
Run a GET request to this URL:
https://app.nativenotify.com/api/expo/indie/sub/${app-id}/${app-token}/${unique-user-id}
Get ALL Successfully Registered IDs
Use this API to see a list of all successfully registered unique user IDs.
Run a GET request to this URL:
https://app.nativenotify.com/api/expo/indie/subs/${app-id}/${app-token}
Unregister a Registered ID
Use this API to unregister a registered unique user ID, for example when a user logs out.
Run a DELETE request to this URL:
https://app.nativenotify.com/api/app/indie/sub/${app-id}/${app-token}/${unique-user-id}
API Notes
- Replace "unique-user-id" with the unique user ID you registered with Native Notify.
- 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.