fix issues due to latest sync

This commit is contained in:
GOVINDDIXIT 2020-07-28 20:47:45 +05:30
parent 1cfa82a450
commit 67c877d55f
4 changed files with 5 additions and 3 deletions

View File

@ -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);
}

View File

@ -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;
}
}
}