Migration guide from 6.x to 7.x - optimove-tech/Optimove-SDK-Android GitHub Wiki

Migration

Android 13

Starting from Android 13, notifications permission is off by default. We have changed our existing API:

 Optimove.pushRegister();

To:

 Optimove.pushRequestDeviceToken();

In case the app is running on Android 13 and higher, the notifications are off and were never explicitly turned off, this new method is now causing the notification permission request prompt to appear. Consider calling this method when it is most appropriate to request the notification permission.