Push Notification Customization

HYPR SDK for Android: Web Authentication

Customize Push Notification Title and Message

Call this method where the push notification comes in, i.e., onMessageReceived in the FirebaseMessagingService subclass.

HyprPushNotificationAdapter.getInstance().setOnNotificationPressedLaunchActivity(MainActivity::class.java)
                .setNotificationTitle("title")
                .setNotificationBody("Body")
            .processRemoteMessage(App.applicationContext(), remoteMessage.data)

Customize Push Icon

Within the res/drawable directory, add an image with the name hypr_common_notification_icon.