Android SDK

Download SDK
Sample Project
SDK API Docs

To integrate Pushwoosh into your Android application follow these simple steps:

1. Add pushwoosh, android support v4 and google play services library dependencies into your application build.gradle:

compile 'com.pushwoosh:pushwoosh:+'
compile 'com.android.support:support-v4:+'
compile 'com.google.android.gms:play-services-gcm:+'

Replace "+" with the current version of Pushwoosh, Android Support and Google Play Services libraries.

2. Add following metadata in AndroidManifest.xml:

<meta-data android:name="com.pushwoosh.appid" android:value="XXXXX-XXXXX" />
<meta-data android:name="com.pushwoosh.senderid" android:value="A123456789012" />

Where:
com.pushwoosh.appid is your Pushwoosh Application Code
com.pushwoosh.senderid is the Project Number you received from Google (Locate your Project Number), prefixed with A.

3. Register for push notifications:

Pushwoosh.getInstance().registerForPushNotifications();

4. In AndroidManifest.xml specify notification resources for small icon and notification icon background color:

<meta-data
            android:name="com.pushwoosh.notification_icon"
            android:value="@drawable/notification_icon_resource_name" />
<meta-data
            android:name="com.pushwoosh.notification_icon_color"
            android:value="@color/notification_icon_color" />

Notification small icon should be 24x24dp and alpha-only. The system ignores all non-alpha channels in action icons and in the notification small icon.

Android SDK