From d97da1c60fa480a596a4e6c78931721cd9b3c8ce Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Mon, 1 Feb 2021 20:10:23 +0100 Subject: [PATCH] fix(push-notifications): Avoid missing push data on events --- push-notifications/ios/Plugin/PushNotificationsHandler.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/push-notifications/ios/Plugin/PushNotificationsHandler.swift b/push-notifications/ios/Plugin/PushNotificationsHandler.swift index f39e12607..32edd7e29 100644 --- a/push-notifications/ios/Plugin/PushNotificationsHandler.swift +++ b/push-notifications/ios/Plugin/PushNotificationsHandler.swift @@ -83,7 +83,7 @@ public class PushNotificationsHandler: NSObject, NotificationHandlerProtocol { "title": request.content.title, "sound": notificationRequest["sound"] ?? "", "body": request.content.body, - "extra": request.content.userInfo as? JSObject ?? [:], + "extra": JSTypes.coerceDictionaryToJSObject(request.content.userInfo) ?? [:], "actionTypeId": request.content.categoryIdentifier, "attachments": notificationRequest["attachments"] ?? [] ]