Skip to content

Commit

Permalink
hotfix: add android ttl payload to sendMessageByTopic function
Browse files Browse the repository at this point in the history
  • Loading branch information
hwmin414 committed May 7, 2024
1 parent 3efddbc commit 08602b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/fcm.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ const sendMessageByTopic = async (topic, type, title, body, icon, link) => {
icon: icon || "/icons-512.png",
click_action: "FLUTTER_NOTIFICATION_CLICK",
},
android: {
ttl: 0,
},
};
await getMessaging().send(message);
logger.info(`Notification sent to token ${topic}`);
Expand Down

0 comments on commit 08602b2

Please sign in to comment.