From 8cd38d5e193397ff73e1cd4b26bce62a7e18f468 Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Thu, 30 Jul 2020 14:10:13 -0300 Subject: [PATCH] [FIX] Add missing keys to push get payload (#2358) --- .../main/java/chat/rocket/reactnative/LoadNotification.java | 5 ++++- ios/NotificationService/NotificationService.swift | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/android/app/src/main/java/chat/rocket/reactnative/LoadNotification.java b/android/app/src/main/java/chat/rocket/reactnative/LoadNotification.java index b80dfb7f6..e7e2ad431 100644 --- a/android/app/src/main/java/chat/rocket/reactnative/LoadNotification.java +++ b/android/app/src/main/java/chat/rocket/reactnative/LoadNotification.java @@ -37,10 +37,13 @@ class JsonResponse { Sender sender; String messageId; String notificationType; + String name; + String messageType; class Sender { - String username; String _id; + String username; + String name; } } } diff --git a/ios/NotificationService/NotificationService.swift b/ios/NotificationService/NotificationService.swift index 28db4ec60..bb5352a59 100644 --- a/ios/NotificationService/NotificationService.swift +++ b/ios/NotificationService/NotificationService.swift @@ -22,11 +22,12 @@ struct PushResponse: Decodable { let messageId: String let notificationType: String? let name: String? + let messageType: String? struct Sender: Decodable, Encodable { let _id: String let username: String - let name: String + let name: String? } } }