diff --git a/src/main/java/com/uci/orchestrator/Consumer/ReactiveConsumer.java b/src/main/java/com/uci/orchestrator/Consumer/ReactiveConsumer.java index a165dfd..6d23d1a 100644 --- a/src/main/java/com/uci/orchestrator/Consumer/ReactiveConsumer.java +++ b/src/main/java/com/uci/orchestrator/Consumer/ReactiveConsumer.java @@ -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) { // }