Skip to end of metadata
Go to start of metadata
  1. Download the Download the Xtify Android C2DM SDK.
  2. Modify the 'AndroidManifest.xml' file:
    1. Android Version:  Set the minimum Android SDK version to '8' (Android 2.2) or higher. The Xtify C2DM SDK will not work with previous versions nor will your users with phones running Android version under 2.2 receive C2DM distributed push notifications.
       
    2. Permissions: The following permissions are needed for the SDK to work properly (These are positioned as children of the <manifest> node). Replace the two occurrences of YOUR_APP_PACKAGE_NAME with your application package name.


      If you'd like to implement the optional Xtify Location features, insert the following: 


      If you want to use the optional Dial Action in the notification details screen, add this:

        

    3. Activity, Service and Receiver Components: add the following xml to the <application> node. Replace the occurrence of YOUR_APP_PACKAGE_NAME with your application package name.

       

    4. Edit your Main Activity Java file: add the following code to onCreate() method.  This code starts and/or ensures that the Xtify SDK is running.  Change "YOUR_XTIFY_APP_KEY" with your Xtify appKey and "YOUR_SENDER_ID" with the role (sender) account email address that you used to register for Google C2DM.

Next Section: Additional integration points

Labels: