We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8af4d01 commit 81166aaCopy full SHA for 81166aa
ios/NotificationService/NotificationService.swift
@@ -47,6 +47,13 @@ class NotificationService: UNNotificationServiceExtension {
47
if let notification = notification {
48
self.bestAttemptContent?.title = notification.title
49
self.bestAttemptContent?.body = notification.text
50
+
51
+ // Update ejson with full payload from server for correct navigation
52
+ if let payloadData = try? JSONEncoder().encode(notification.payload),
53
+ let payloadString = String(data: payloadData, encoding: .utf8) {
54
+ self.bestAttemptContent?.userInfo["ejson"] = payloadString
55
+ }
56
57
self.processPayload(payload: notification.payload)
58
} else {
59
// Server returned no notification, deliver as-is
0 commit comments