getDefaultNotificationBuilder

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

A androidx.core.app.NotificationCompat.Builder.

Parameters

context

The context provided by the SDK.

message

The message provided by the SDK.

channelId

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.

smallIconResId

The resource id for the small icon to be used in the notification.