Skip to content

Commit

Permalink
hotfix: add android payload to fcm send message
Browse files Browse the repository at this point in the history
  • Loading branch information
hwmin414 committed Apr 30, 2024
1 parent 64c0baf commit c7475ba
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 @@ -200,6 +200,9 @@ const sendMessageByTokens = async (tokens, type, title, body, icon, link) => {
click_action: "FLUTTER_NOTIFICATION_CLICK",
},
apns: { payload: { aps: { alert: { title, body } } } },
android: {
ttl: 0,
},
};
const { responses, failureCount } = await getMessaging().sendMulticast(
message
Expand Down

0 comments on commit c7475ba

Please sign in to comment.