NotificationCustomizationOptions
NotificationManager
NotificationMessage
ProximityNotificationCustomizer
PushNotificationActionHandler
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
Package: com.salesforce.marketingcloud.notifications
Available since: SDK version 11.0.0 (also available in 10.0.0)
An open class that extends NotificationCustomizer for handling proximity-based notifications in the Salesforce Marketing Cloud SDK.
1open class ProximityNotificationCustomizer : NotificationCustomizer1constructor(
2 @NonNull smallIconResId: Int,
3 @Nullable channelIdProvider: NotificationManager.NotificationChannelIdProvider
4)Creates a new instance of ProximityNotificationCustomizer.
Parameters:
smallIconResId - Int (@NonNull) - Resource ID for the notification’s small iconchannelIdProvider - NotificationManager.NotificationChannelIdProvider (@Nullable) - Provider for notification channel ID1@NonNull
2open fun setupNotificationBuilder(
3 @NonNull context: Context,
4 @NonNull message: NotificationMessage
5): NotificationCompat.BuilderProvides the Notification Builder to be used when displaying a notification message. Creates and configures the notification builder for displaying messages.
Parameters:
context - Context (@NonNull) - Android contextmessage - NotificationMessage (@NonNull) - The notification message to displayReturns:
NotificationCompat.Builder (@NonNull) - Configured notification builder1NotificationCustomizer
2 └── ProximityNotificationCustomizerThis customizer is specifically designed for proximity-based notifications (geofence/beacon messages) in the Marketing Cloud Mobile Push SDK. Extend this class to customize how proximity notifications are displayed to users.