Skip to content

Commit

Permalink
chore: pass data to notification
Browse files Browse the repository at this point in the history
  • Loading branch information
enesozturk committed Jan 12, 2024
1 parent b880f26 commit 92cf4de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/firebase-messaging-sw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ onBackgroundMessage(messaging, async ev => {

return self.registration.showNotification(m.title, {
icon: m.icon,
body: m.body
body: m.body,
data: { url: m.url }
})
})

Expand Down

0 comments on commit 92cf4de

Please sign in to comment.