From 56ee3bd290043de0cb8f58a57a9e79bc807d6ac3 Mon Sep 17 00:00:00 2001 From: Federico Maccaroni Date: Fri, 14 Jan 2022 10:52:50 -0300 Subject: [PATCH] Fix silent push notifications for iOS, it should not contain alert, badge nor sound keys in aps (#1808) --- .../Implementations/NotificationHubPushRegistrationService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Services/Implementations/NotificationHubPushRegistrationService.cs b/src/Core/Services/Implementations/NotificationHubPushRegistrationService.cs index 59873ac81f..89ea54d7a5 100644 --- a/src/Core/Services/Implementations/NotificationHubPushRegistrationService.cs +++ b/src/Core/Services/Implementations/NotificationHubPushRegistrationService.cs @@ -65,7 +65,7 @@ namespace Bit.Core.Services break; case DeviceType.iOS: payloadTemplate = "{\"data\":{\"type\":\"#(type)\",\"payload\":\"$(payload)\"}," + - "\"aps\":{\"alert\":null,\"badge\":null,\"content-available\":1}}"; + "\"aps\":{\"content-available\":1}}"; messageTemplate = "{\"data\":{\"type\":\"#(type)\"}," + "\"aps\":{\"alert\":\"$(message)\",\"badge\":null,\"content-available\":1}}"; badgeMessageTemplate = "{\"data\":{\"type\":\"#(type)\"}," +