onApplicationDidReceiveRemoteNotification

Deprecated

Use KMPNotifier.onApplicationDidReceiveRemoteNotification(userInfo) from kmpnotifier-push-firebase. See MIGRATION.md.

Replace with

import com.mmk.kmpnotifier.KMPNotifier
import com.mmk.kmpnotifier.push.firebase.onApplicationDidReceiveRemoteNotification
KMPNotifier.onApplicationDidReceiveRemoteNotification(userInfo)

In order to receive notification data payload this functions needs to be called in ios Swift side application didReceiveRemoteNotification function

Example:

func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any]) async -> UIBackgroundFetchResult {
NotifierManager.shared.onApplicationDidReceiveRemoteNotification(userInfo: userInfo)
return UIBackgroundFetchResult.newData
}