onApplicationDidReceiveRemoteNotification
In order to receive push notification data payload this function needs to be called in iOS Swift side application didReceiveRemoteNotification function.
Example:
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any]) async -> UIBackgroundFetchResult {
KMPNotifier.shared.onApplicationDidReceiveRemoteNotification(userInfo: userInfo)
return UIBackgroundFetchResult.newData
}Content copied to clipboard