The SDK uses JobIntentService. You must include the following maven repository URL in build.gradle:
allprojects {
repositories {
jcenter ()
google()
}
}
In addition, add the following dependencies.
dependencies {
...
compile 'com.android.support:support-compat:26.+'
compile 'com.google.firebase:firebase-messaging:11.+'
compile 'com.pushwoosh:pushwoosh:5.9.0'
}
Starting with Pushwoosh SDK 5.4.2, you need to use Android Plugin for Gradle v3.0.0 (or higher) with Gradle v4.1 (or higher). You should add Java 8 support as well. To do so, add the following lines to app’s build.gradle:
android {
...
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
Starting with Pushwoosh SDK 5.1.1, FCM library is used by default, therefore, you need to integrate Firebase into your project correctly. Please refer to Getting Started guide.
For GCM integrtion please refer to GCM Integration (legacy) guide.
Pushwoosh.aar - compiled version of Pushwoosh Android SDK. Includes all necessary AndroidManifest.xml changes required for receiving FCM push notifications. For Amazon integration please add the following dependency:
compile 'com.pushwoosh:pushwoosh-amazon:5.9.0'
Maven integration:
<dependency>
<groupId>com.pushwoosh</groupId>
<artifactId>pushwoosh</artifactId>
<version>5.9.0</version>
</dependency>
Documentation: https://rawgit.com/Pushwoosh/pushwoosh-android-sdk/master/Documentation/index.html
Samples: https://github.com/Pushwoosh/pushwoosh-android-sdk/tree/master/Samples
Pushwoosh team http://www.pushwoosh.com