Android SDK 5.7.0

Interstitial

  • Fixed webview mode interstitial being opened in browser instead of webview

Autobackup/EncryptedSharedPreferences

Push Notifications

  • fun APPushManager.requestPermissionIfNeeded(): Unit has been deprecated
  • suspend fun APPushManager.requestPermission(activity: ComponentActivity): Boolean has been added, it is a suspend function returning whether the permission was granted or not
  • A fun onPushClicked(context: Context, push: APPush): Unit function has been added in APSDKInterface, which is called when a notification is clicked while the app is in the foreground

Datadog log module

  • Functions in APLog have been added to add and remove tags
  • APLog.logger has been deprecated
  • Functions in APLog have been added to log messages without using a direct reference to a Datadog object : APLog.debug, APLog.error etc
  • A default device_uid attribute has been added to all logs made, containing the DeviceUID from the SDK

Stats

  • Added 10s timeout to sendStats()

Remote Configuration

  • A callback has been added in APSDK to receive the APOnlineConfiguration: fun onOnlineConfigurationReceived(configuration: APOnlineConfiguration)

Request JWT Signature

  • The JWT was previously signed incorrectly (the key used for signing wasn't the correct one), this has been fixed

Various updates

  • Dependencies have been upgraded
    • com.datadoghq:dd-sdk-android-logs 2.18.0 -> 3.6.0
    • com.google.firebase:firebase-bom 33.9.0 -> 34.9.0
    • com.github.bumptech.glide 4.16.0 -> 5.0.5
    • androidx.security:security-crypto 1.1.0-alpha06 -> 1.1.0
    • io.jsonwebtoken 0.12.6 -> 0.13.0
    • com.google.code.gson:gson 2.12.1 -> 2.13.2
    • androidx.lifecycle:lifecycle-process 2.8.7 -> 2.10.0
    • com.google.android.material:material 1.12.0 -> 1.13.0
    • org.jetbrains.kotlinx:kotlinx-coroutines-core 1.10.1 -> 1.10.2
  • AGP 8.8.1 -> 9.0.1
  • Gradle 8.10.2 -> 9.1.0
  • minSdk 21 -> 23
  • Kotlin 2.0.0 -> 2.3.10
  • socket.IO dependency has been removed as it was only used in an unused module which has also been removed (Log, different from the datadog log module)

Misc

  • x-ap-appid with the package name has been added to all API and SDK requests
  • A potential crash around Material You colors in notifications background has been fixed