Skip to content

Commit

Permalink
Merge pull request #512 from sparcs-kaist/hotfix/android-notification
Browse files Browse the repository at this point in the history
hotfix: add android ttl payload to sendMessageByTopic function
  • Loading branch information
kmc7468 authored May 7, 2024
2 parents 3efddbc + 08602b2 commit 489803e
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 489803e

Please sign in to comment.