public interface IAppboyNotificationFactory
|Modifier and Type||Method and Description|
The interface for a custom notification factory.
@Deprecated android.app.Notification createNotification(AppboyConfigurationProvider appConfigurationProvider, android.content.Context context, android.os.Bundle notificationExtras, android.os.Bundle appboyExtras)
createNotification(BrazeNotificationPayload)returns null as it is the preferred method moving forward.
appConfigurationProvider- Braze app configuration
context- Application context
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
android.app.Notification createNotification(BrazeNotificationPayload brazeNotificationPayload)
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.
createNotification(AppboyConfigurationProvider, Context, Bundle, Bundle) is
only called if this method returns null for backwards compatibility reasons.
brazeNotificationPayload- A convenience wrapper object around the Braze notification payload.