Push delivery working example
The following example shows how to create an XML instructions file for a Push delivery.
Overview
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.
Note:
See the Contactlab Developer Site for a sample application that collects device tokens for mobile applications.
Recipients
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.
Note:
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.
See the Web UI for more about creating a <push_template_envelope>
.
Next page:
Related Pages:
- Contactlab section
- Common sections and elements
- Message section
- Building a campaign with XMLDelivery
- Working examples
- Email delivery working example
- SMS delivery working example
- Push delivery working example
- Example of an XML report
Also see:
- Understanding XMLDelivery
- Using XMLDelivery
- Does XMLDelivery match your needs?
- Setting up XMLDelivery
Other links: