Meteor-Community-Packages / raix-push

DEPRECATED: Push notifications for cordova (ios, android) browser (Chrome, Safari, Firefox)
https://atmospherejs.com/raix/push
MIT License
514 stars 197 forks source link

How to add additional data when opening notification #312

Open dominicarrojado opened 6 years ago

dominicarrojado commented 6 years ago

I am using the Push.on('startup', (notification) => {}) function. How do I add in additional data on it when I'm sending notifications?

raix commented 6 years ago

as I remember theres a "payload" hidden in notification https://github.com/raix/push/blob/524f23ac3c3c968a237bfbbf1b77f324d5c830bc/lib/client/browser.js#L146