Implemented the code part as per the SDK instructions but the remote notification receiver not getting called while receiving One-Signal notifications in android(Kotlin).
Manifest declaration
<meta-data
android:name="com.app.onesignal.NotificationServiceExtension"
android:value="com.app.view.services.NotificationServiceExtension" />
Notification receiver handler
class NotificationServiceExtension : OSRemoteNotificationReceivedHandler {
override fun remoteNotificationReceived(
context: Context,
notificationReceivedEvent: OSNotificationReceivedEvent
) {
val notification = notificationReceivedEvent.notification
notificationReceivedEvent.complete(mutableNotification)
}
}