ProximityNotificationCustomizer
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.
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 ID
Provides 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 display
Returns:
NotificationCompat.Builder(@NonNull) - Configured notification builder
This 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.