Skip to content

Commit

Permalink
fcm url changes
Browse files Browse the repository at this point in the history
  • Loading branch information
surabhi-mahawar committed Jul 27, 2022
1 parent 8fa65e9 commit 5b473f9
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,14 @@ private String getFederatedUsersMeta(JsonNode campaign, JsonNode transformer) {
map.put("phone", userPhone);
map.put("message", userMsg.get("body").toString());
try{
/* FCM Token */
if(userObj.get("fcmToken") != null) {
map.put("fcmToken", userObj.getString("fcmToken"));
}
/* FCM - If clickActionUrl found in userObj, use it, override previous one */
if(userObj.get("fcmClickActionUrl") != null) {
map.put("fcmClickActionUrl", userObj.getString("fcmClickActionUrl"));
}
} catch (Exception e) {
//
}
Expand Down

0 comments on commit 5b473f9

Please sign in to comment.