Enable Push Notifications

Use this code example to add support for push notifications to your app. Replace YOUR_SENDER_ID with the sender ID for your app. You can find the sender ID on the Project Settings page of the Firebase console.

1SFMCSdk.configure(this, SFMCSdkModuleConfig.build {
2    // other config(s)
3    this.pushFeatureModuleConfig = PushFeatureConfig.builder().apply {
4        setSenderId("YOUR_SENDER_ID")
5        setNotificationCustomizationOptions(
6            PushNotificationCustomizationOptions.create(R.drawable.ic_notification)
7        )
8    }.build()
9    // ...
10}){ initializationStatus ->
11    // Handle Initialization Status
12}