Skip to content

Instantly share code, notes, and snippets.

/*Setting up an Android Application
First, add the CloudPush module to your project:
1.Open your project's tiapp.xml file.
2.In the Modules section, click the Add button (green plus sign).
3.Select ti.cloudpush and click OK .
In your project's JavaScript, require the module and initialize it with the CloudPush.retrieveDeviceToken()
method.On successful retrieval of the device token, set the CloudPush.enabled property to true to enable
the device to receive push notifications. You must call retrieveDeviceToken() before any other CloudPush