Android SDK 5.7.0
2 months ago by Matteo Melis
Interstitial
- Fixed
webviewmode interstitial being opened in browser instead of webview
Autobackup/EncryptedSharedPreferences
- SDK 5.6.0 introduced some data being stored in
EncryptedSharedPreferences, this could cause crashes at launch after a backup (if the encrypted file was backed up) and an uninstall/reinstall, this crash has been fixed (see https://appspanel.readme.io/docs/android-getting-started#auto-backup-v56)
Push Notifications
fun APPushManager.requestPermissionIfNeeded(): Unithas been deprecatedsuspend fun APPushManager.requestPermission(activity: ComponentActivity): Booleanhas been added, it is a suspend function returning whether the permission was granted or not- A
fun onPushClicked(context: Context, push: APPush): Unitfunction has been added inAPSDKInterface, which is called when a notification is clicked while the app is in the foreground
Datadog log module
- Functions in
APLoghave been added to add and remove tags APLog.loggerhas been deprecated- Functions in
APLoghave been added to log messages without using a direct reference to a Datadog object :APLog.debug,APLog.erroretc - A default
device_uidattribute 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
APSDKto receive theAPOnlineConfiguration: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-logs2.18.0->3.6.0com.google.firebase:firebase-bom33.9.0->34.9.0com.github.bumptech.glide4.16.0->5.0.5androidx.security:security-crypto1.1.0-alpha06->1.1.0io.jsonwebtoken0.12.6->0.13.0com.google.code.gson:gson2.12.1->2.13.2androidx.lifecycle:lifecycle-process2.8.7->2.10.0com.google.android.material:material1.12.0->1.13.0org.jetbrains.kotlinx:kotlinx-coroutines-core1.10.1->1.10.2
AGP8.8.1->9.0.1Gradle8.10.2->9.1.0minSdk21->23Kotlin2.0.0->2.3.10socket.IOdependency 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-appidwith 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
