Request Runtime Notification Permission on Android

Android 13 and later require a runtime permission to display notifications. This change impacts all applications that run on Android 13 or later. Your app can’t display notifications until the user grants this permission. For more information, see Android Developers: Request runtime permissions.

After the user accepts the request to display notifications, notify the SDK by using this code.

1SFMCSdk.requestSdk { sdk ->
2  sdk.mp {
3    it.pushMessageManager.enablePush()
4  }
5}