public interface IAppboyNotificationFactory
|Modifier and Type||Method and Description|
The interface for a custom notification factory.
android.app.Notification createNotification(AppboyConfigurationProvider appConfigurationProvider, android.content.Context context, android.os.Bundle notificationExtras, android.os.Bundle appboyExtras)
Appboy.setCustomAppboyNotificationFactory(IAppboyNotificationFactory)allows for custom modification or replacement of Braze push messages before they are deployed to the notification center. Separate from notification object generation, it is also possible to handle deployment to the notification center itself manually (for example, to finely control what notification id is sent with the notification). When handling display manually, your notification factory should return null and also handle sending a push received broadcast intent and optionally waking the screen.
notificationExtras- the original Bundle object passed to Braze by fcm/adm, potentially with additions or modifications.
appboyExtras- a Bundle object containing 'extra' key value pairs defined by the client