Skip to content

Commit

Permalink
Notification testing using cache
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajjangid05 committed May 11, 2023
1 parent 422470a commit 8fc3d79
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ public Mono<Boolean> sendNotificationMessage(String serviceKey, String token, St
try {
ObjectNode resultNode = (ObjectNode) mapper.readTree(response);
if (resultNode.get("success") != null && Integer.parseInt(resultNode.get("success").toString()) >= 1) {
log.info("Notification triggered success : " + phone + " fcm token : " + token);
return true;
} else{
log.error("Notification not sent : "+ phone + " fcm Token : " + token + " error :" + resultNode.toString());
}
} catch (JsonProcessingException jsonMappingException) {
log.error("Exception in sendNotificationMessage: "+jsonMappingException.getMessage());
Expand Down

0 comments on commit 8fc3d79

Please sign in to comment.