Send iOS Push Notifications
Description
This API is used to send text push notifications to the user devices from your iOS app for testing, after you register your app with Apple, enroll for Catalyst push notifications, and register your device. You must implement the six steps explained in the Push Notifications- iOS help section before you can send push notifications to devices.
Catalyst enables you to send push notifications either to registered test devices or to production devices by passing the appID value from the configuration file of the respective environment. The request URL for sending push notifications to test devices and to production devices varies. These are presented in the Request Details section.
You can pass the push notification message and the recipient to send the push notifications to, along with other details in your API request as shown in the sample request.
Request Details
Request URL to send Test Notifications
{api-domain}/baas/v1/project/{project_id}/push-notification/{app_id}/test
Request URL to send Production Notifications
{api-domain}/baas/v1/project/{project_id}/push-notification/{app_id}/project-user/notify
Request Headers
Content-Type: application/json
Optional Headers
CATALYST-ORG: {org_id}
Environment: Development
Scope
ZohoCatalyst.notifications.mobile.CUSTOM
Request JSON Properties
The JSON that contains the details of the push notification content and metadata
Max Size: 100 characters
Max Size: 100 characters
Response Details
The response returns the status of the sent notification as success or failed, and the data that was passed including message and expiry_time.
curl -X POST
https://api.catalyst.zoho.com/baas/v1/project/204000000024010/push-notification/204000000036005/project-user/notify
-H “Content-Type: application/json”
-d ‘{
“recipients”:“amanda.boyle@zylker.com”,
“push_details”:{
“message”:“Welcome to Zylker App!”,
“badge_count”:10,
“expiry_time”:12,
“additional_info”:{
“sample_key” : “sample_value”
}
}
}’
{
"status": "success",
"data": {
"recipients": "amanda.boyle@zylker.com",
"push_details": {
"message": "Welcome to Zylker App!",
"additional_info": {
"sample_key": "sample_value"
},
"badge_count": 10,
"reference_id": null,
"expiry_time": 12
}
}
}
Send Push Notifications- Node.js SDK
Send Push Notifications- Python SDK
Register Device for Push Notifications- iOS SDK
Register Device for Push Notifications- Android SDK
Register Device for Push Notifications- Flutter SDK
Register Device for Push Notifications- Web SDK
Yes
No
Send your feedback to us