This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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 |