Skip to content

Example: Target All Devices for an OS

Important

Make sure to replace xxxx in the domain name in the sample request below to the one assigned to your application.

curl -H Content-Type:application/json -X POST \   
-d '{ \  
      "message":"Hi Devices!", \  
 "pushBroadcast":"ANDROID|IOS", \  
"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"  \  
}  \  
    }' \  
-v https://xxxx.backendless.app/api/messaging/Default

Codeless Reference

The example below publishes the message to the "default" channel. This message is delivered only to Android devices, since no values were set for iOS properties.

push_example_basic_push_1

For a detailed description of the Codeless block, refer to the Push With API topic of this guide.