From 67c877d55feb2a7e5b1de51a373a6079e2dac092 Mon Sep 17 00:00:00 2001 From: GOVINDDIXIT Date: Tue, 28 Jul 2020 20:47:45 +0530 Subject: [PATCH] fix issues due to latest sync --- .../{main => play}/java/chat/rocket/reactnative/Callback.java | 0 .../java/chat/rocket/reactnative/CustomPushNotification.java | 4 ++-- android/app/src/play/java/chat/rocket/reactnative/Ejson.java | 4 +++- .../java/chat/rocket/reactnative/LoadNotification.java | 0 4 files changed, 5 insertions(+), 3 deletions(-) rename android/app/src/{main => play}/java/chat/rocket/reactnative/Callback.java (100%) rename android/app/src/{main => play}/java/chat/rocket/reactnative/LoadNotification.java (100%) diff --git a/android/app/src/main/java/chat/rocket/reactnative/Callback.java b/android/app/src/play/java/chat/rocket/reactnative/Callback.java similarity index 100% rename from android/app/src/main/java/chat/rocket/reactnative/Callback.java rename to android/app/src/play/java/chat/rocket/reactnative/Callback.java diff --git a/android/app/src/play/java/chat/rocket/reactnative/CustomPushNotification.java b/android/app/src/play/java/chat/rocket/reactnative/CustomPushNotification.java index 401314d77..ac747ae9f 100644 --- a/android/app/src/play/java/chat/rocket/reactnative/CustomPushNotification.java +++ b/android/app/src/play/java/chat/rocket/reactnative/CustomPushNotification.java @@ -114,7 +114,7 @@ public class CustomPushNotification extends PushNotification { Ejson ejson = new Gson().fromJson(bundle.getString("ejson", "{}"), Ejson.class); notification - .setContentTitle(title) + .setContentTitle(title) .setContentText(message) .setContentIntent(intent) .setPriority(Notification.PRIORITY_HIGH) @@ -336,7 +336,7 @@ public class CustomPushNotification extends PushNotification { intent.putExtra(NOTIFICATION_ID, notificationId); PendingIntent dismissPendingIntent = PendingIntent.getBroadcast(mContext, notificationId, intent, 0); - + notification.setDeleteIntent(dismissPendingIntent); } diff --git a/android/app/src/play/java/chat/rocket/reactnative/Ejson.java b/android/app/src/play/java/chat/rocket/reactnative/Ejson.java index d5b6b0737..0c68e4755 100644 --- a/android/app/src/play/java/chat/rocket/reactnative/Ejson.java +++ b/android/app/src/play/java/chat/rocket/reactnative/Ejson.java @@ -9,6 +9,8 @@ public class Ejson { String rid; String type; Sender sender; + String messageId; + String notificationType; private String TOKEN_KEY = "reactnativemeteor_usertoken-"; private SharedPreferences sharedPreferences = RNUserDefaultsModule.getPreferences(CustomPushNotification.reactApplicationContext); @@ -40,4 +42,4 @@ public class Ejson { String username; String _id; } -} +} \ No newline at end of file diff --git a/android/app/src/main/java/chat/rocket/reactnative/LoadNotification.java b/android/app/src/play/java/chat/rocket/reactnative/LoadNotification.java similarity index 100% rename from android/app/src/main/java/chat/rocket/reactnative/LoadNotification.java rename to android/app/src/play/java/chat/rocket/reactnative/LoadNotification.java