Skip to content

Commit

Permalink
[Hot Fix] - Resolved notification botName error
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajjangid05 committed Aug 24, 2023
1 parent 0bac550 commit 9dafdcb
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,7 @@ public Mono<List<XMessage>> apply(List<XMessage> msgList) {
.setBody(nextMsg.getPayload().getText())
.build();
}
String botName = nextMsg.getApp().replaceAll(" ", "_");
log.info("FirebaseNotificationAdapter:processOutBoundMessageF:: BotName : " + botName + " : fcmAndroidConfigTTl : " + fcmAndroidConfigTTl);
log.info("FirebaseNotificationAdapter:processOutBoundMessageF:: fcmAndroidConfigTTl : " + fcmAndroidConfigTTl);
Message message = Message.builder()
.setNotification(notification)
.setToken(data.get("fcmToken"))
Expand All @@ -266,7 +265,7 @@ public Mono<List<XMessage>> apply(List<XMessage> msgList) {
.putData("destAdd", nextMsg.getTo().getUserID())
.putData("fcmDestAdd", data.get("fcmToken"))
.putData("click_action", click_action)
.setFcmOptions(FcmOptions.withAnalyticsLabel(botName))
.setFcmOptions(FcmOptions.withAnalyticsLabel(nextMsg.getBotId().toString()))
.setAndroidConfig(AndroidConfig.builder().setTtl(1000 * fcmAndroidConfigTTl).build())
.putAllData(dataMap)
.build();
Expand Down

0 comments on commit 9dafdcb

Please sign in to comment.