[SDK] [Android] Release v1.2.0.0
GitHub release
Integration guide
Changelog:
- Switch to Android Studio. Deprecate Eclipse.
- New easier integration (see below).
- Fix issues when calling some functions from background thread.
- Fix notification while application in foreground not being displayed as heads-up.
- Use launcher icon in rich notifications, permit using another for the notification center.
- Update targetSdk to 23
- Update android-async-http to v1.4.9.
- Include OpenUDID as source, not jar
- Update OpenUDID to solve a SecurityException on some Samsung devices
Upgrading:
You can remove all the changes done to your AndroidManifest.xml
.
They are now automatically added by the Android Manifest Merger, triggered when building you project using Gradle or Android Studio.
For a precise list of those changes, see the documentation of the previous version.
You must now include the WonderPush Android SDK as a gradle dependency as follows in your app/build.gradle
:
// Include the SDK dependency
dependencies {
compile 'com.wonderpush:wonderpush-android-sdk:1.2.0.0'
}
// Configure the few necessary parameters for the manifest merger
android {
defaultConfig {
manifestPlaceholders = [
// Corresponds to [NOTIFICATION_ICON] in the previous manifest,
// in the "notificationIcon" metadata of the WonderPushBroadcastReceiver.
wonderpushNotificationIcon: '@mipmap/ic_launcher',
// Corresponds to [YOUR_MAIN_ACTIVITY_CLASS] in the previous manifest,
// in the "activityName" metadata of the WonderPushBroadcastReceiver.
wonderpushDefaultActivity: '.MainActivity' // you can use a fully qualified class too here
]
}
}
That's all!
If you performed some changes over the previously described in the documentation, or if you removed some changes however (like changing the BroadcastReceiver
for handling your own notifications), you will need to instruct the manifest merger to merge them properly. Just refer to the new documentation for Android push notifications in such case.