title layout
Push delivery working example

Push delivery working example

The following example shows how to create an XML instructions file for a Push delivery.


You can use Contactsend to send Push notifications to applications installed on iOS or Android devices. To send a Push notification to a device, you need:

  • The device token that is created when the application is installed on the device
  • The certificate that identifies the application in the App Store

Before sending a Push notification using Contactsend, you should:

  • Register the application and its certificates with Contactsend
  • Collect the device tokens when end-users install the mobile application

XMLDelivery is just one of the solutions provided by Contactlab that you can use to send Push notifications. See Does XMLDelivery match your needs? for more details.


See the Contactlab Developer Site for a sample application that collects device tokens for mobile applications.


A recipient or a test_recipient is identified by adding three fields:

  • The device token

    <PUSH> is the field name used in the example.

  • The endpoint type

    <PUSH_ENDPOINT> is the field name used in the example.

  • The mobile application name as registered with Contactsend

    <APP_NAME> is the field name used in the example.


The field names described above and used in the example are for illustration purposes only. The actual field names must be selected from and match those used in the database. However, field name matching is not case sensitive, for example, you can use Name or name.

Endpoint types

You can use the following endpoint types:

  • APN

    Apple Push Notification for Apple devices.

  • GCM

    Google Cloud Messages for Android devices.

See Related Pages below for links to the topics that describe each tag.

    <?xml version="1.0" encoding="utf-8"?>
                    <retry />
                <delivery method="auto">
                    <subject>xmld2 BOMB push test</subject>
                                 "body":"Hello ${MyAppleApp}$",
                                 "title":"Date: <%= Time.now.strftime('%Y-%m-%dT%T') %>"
                              "body":""Hello ${MyGoogleApp}$",
                              "title":"Date: <%= Time.now.strftime('%Y-%m-%dT%T') %>",

See the Web UI for more about creating a <push_template_envelope>.

Next page:

Example of an XML report

Also see: