Skip to content

Commit f10a0fb

Browse files
committed
RE1-T88 Trying to add gcm flag to apns payload.
1 parent 4ffe97b commit f10a0fb

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Providers/Resgrid.Providers.Messaging/NovuProvider.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -260,20 +260,20 @@ private async Task<bool> SendNotification(string title, string body, string reci
260260
}
261261
},
262262
},
263-
apns = new
263+
apns = new Dictionary<string, object>
264+
{
265+
["badge"] = count,
266+
["sound"] = new
264267
{
265-
badge = count,
266-
sound = new
267-
{
268-
name = sound,
269-
critical = channelName == "calls" ? 1 : 0,
270-
volume = 1.0f
271-
},
272-
type = type,
273-
category = channelName,
274-
eventCode = eventCode,
268+
name = sound,
269+
critical = channelName == "calls" ? 1 : 0,
270+
volume = 1.0f
275271
},
276-
272+
["type"] = type,
273+
["category"] = channelName,
274+
["eventCode"] = eventCode,
275+
["gcm.message_id"] = "123"
276+
},
277277
},
278278
to = new[]{ new
279279
{

0 commit comments

Comments
 (0)