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
Content copied to clipboard
KMPNotifier.onApplicationDidReceiveRemoteNotification(userInfo)Content copied to clipboard
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
}Content copied to clipboard