Skip to content

Example: Notification from a Push Template

curl -H Content-Type:application/json -X POST \  
-d '{"message":"Hi Devices!", \  
"headers":{ \  
           "android-ticker-text": "You just got a push notification!", \  
           "android-content-title": "This is a notification title",  \  
           "android-content-text": "Push Notifications are cool"  \  
}}'  \  

Backendless Console includes a code generator which creates the client-side code for publishing a push notification for a template. To access the code generator, login to Backendless Console, select your app and click the Messaging icon. Select the PUSH NOTIFICATION tab and click the Push Templates menu. There is the "show code" icon for each created template as shown below. When you click the icon, a popup is displayed with the generated code:


The displayed popup lets you select the client-side language and copy the generated code: