NotificationFactory

abstract class NotificationFactory

Abstract class that is used to customize push notification appearance. All NotificationFactory ancestors must be public and must contain public constructor without parameters. Application will crash on startup if this requirement is not met. Custom NotificationFactory should be registered in AndroidManifest.xml metadata as follows:


        <meta-data
            android:name="com.pushwoosh.notification_factory"
            android:value="com.your.package.YourNotificationFactory" />
    

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun channelDescription(channelName: String): String
Link copied to clipboard
open fun channelName(channelName: String): String
Link copied to clipboard
open fun getNotificationIntent(data: PushMessage): Intent
Link copied to clipboard
abstract fun onGenerateNotification(data: PushMessage): Notification
Generates notification using PushMessage data.