Upgrade MobilePush SDK for Android From Version 8.x to 8.2.x

The MobilePush SDK for Android version 8.2.x is compiled using JDK 17. This version of the JDK meets the requirements of Gradle and Google. For more information, see the Change Log.

When you upgrade from 8.x to 8.2.x, you must make some changes to your app’s code.

To upgrade to Android SDK version 8.2.x, add the SDK as a dependency to your build.gradle file, as shown in this example.

To use the latest SDK version, replace 8.2.x with the latest version number available on the Change Log.

After you add the latest version of the SDK as a dependency and fetch that version in your project, modify your implementation of PushModuleReadyListener.

This step applies to Java-based implementations only. If your implementation uses Kotlin, skip this step.

Your existing PushModuleReadyListener implementation contains code similar to this example.

Update the code to add a second ready() method that accepts a ModuleInterface parameter and casts it to PushModuleInterface, as shown in this example.