get Default Notification Builder
open fun getDefaultNotificationBuilder(@NonNull context: Context, @NonNull message: NotificationMessage, @NonNull channelId: String, @DrawableRes smallIconResId: Int): NotificationCompat.Builder
This method will build out a androidx.core.app.NotificationCompat.Builder with the defaults typically used by the SDK. It will set the following:
- title text
- alert text
- small icon
- large icon
- big image
- sound (*Only works on devices prior to Android O*)
You will need to set the setContentIntent and wrap the PendingIntent using redirectIntentForAnalytics to receive open analytics when the notification is clicked.
Return
Parameters
context
The context provided by the SDK.
message
The message provided by the SDK.
channel Id
The notification channel ID. If this channel does not exist then your notification will not be displayed on devices running Android O (Oreo) or newer.
small Icon Res Id
The resource id for the small icon to be used in the notification.