diff --git a/example/ios/NotificationServiceExtension/NotificationService.swift b/example/ios/NotificationServiceExtension/NotificationService.swift index 3fce6e21..4239e72e 100644 --- a/example/ios/NotificationServiceExtension/NotificationService.swift +++ b/example/ios/NotificationServiceExtension/NotificationService.swift @@ -25,7 +25,11 @@ class NotificationService: UNNotificationServiceExtension { .build() ) - MessagingPush.shared.didReceive(request, withContentHandler: contentHandler) + // Returns false for a push Customer.io didn't send (for example from another push provider) and never + // calls the handler for it, so deliver that push unchanged. + if !MessagingPush.shared.didReceive(request, withContentHandler: contentHandler) { + contentHandler(request.content) + } } override func serviceExtensionTimeWillExpire() { diff --git a/package.json b/package.json index 6eb2a8fa..4bc5ac04 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ }, "./package.json": "./package.json" }, - "cioNativeiOSSdkVersion": "= 5.2.1", + "cioNativeiOSSdkVersion": "= 5.3.1", "files": [ "src", "lib",