fix issues due to latest sync
This commit is contained in:
parent
1cfa82a450
commit
67c877d55f
|
@ -114,7 +114,7 @@ public class CustomPushNotification extends PushNotification {
|
||||||
Ejson ejson = new Gson().fromJson(bundle.getString("ejson", "{}"), Ejson.class);
|
Ejson ejson = new Gson().fromJson(bundle.getString("ejson", "{}"), Ejson.class);
|
||||||
|
|
||||||
notification
|
notification
|
||||||
.setContentTitle(title)
|
.setContentTitle(title)
|
||||||
.setContentText(message)
|
.setContentText(message)
|
||||||
.setContentIntent(intent)
|
.setContentIntent(intent)
|
||||||
.setPriority(Notification.PRIORITY_HIGH)
|
.setPriority(Notification.PRIORITY_HIGH)
|
||||||
|
@ -336,7 +336,7 @@ public class CustomPushNotification extends PushNotification {
|
||||||
intent.putExtra(NOTIFICATION_ID, notificationId);
|
intent.putExtra(NOTIFICATION_ID, notificationId);
|
||||||
|
|
||||||
PendingIntent dismissPendingIntent = PendingIntent.getBroadcast(mContext, notificationId, intent, 0);
|
PendingIntent dismissPendingIntent = PendingIntent.getBroadcast(mContext, notificationId, intent, 0);
|
||||||
|
|
||||||
notification.setDeleteIntent(dismissPendingIntent);
|
notification.setDeleteIntent(dismissPendingIntent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,8 @@ public class Ejson {
|
||||||
String rid;
|
String rid;
|
||||||
String type;
|
String type;
|
||||||
Sender sender;
|
Sender sender;
|
||||||
|
String messageId;
|
||||||
|
String notificationType;
|
||||||
|
|
||||||
private String TOKEN_KEY = "reactnativemeteor_usertoken-";
|
private String TOKEN_KEY = "reactnativemeteor_usertoken-";
|
||||||
private SharedPreferences sharedPreferences = RNUserDefaultsModule.getPreferences(CustomPushNotification.reactApplicationContext);
|
private SharedPreferences sharedPreferences = RNUserDefaultsModule.getPreferences(CustomPushNotification.reactApplicationContext);
|
||||||
|
@ -40,4 +42,4 @@ public class Ejson {
|
||||||
String username;
|
String username;
|
||||||
String _id;
|
String _id;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue