Get data value from event listener #607
Unanswered
Sergey-lang
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I use notifee.
I send from Postman
{ "to":"dMDVVnQkTNW42DMwEoG9er:APA91bF7Bgpub2vtSpU7SNKRodeMiCCjibmsKG_pISb4pI02ectwm5IKVISVDodZRheQzn7943-HGROsdQLD_vh3CktJA7XsTuRt4353436436TWDggZfMwaTt0TKFe", "notification": { "title": "Notification", "subText": "Notification subText", "body": "body example", "mutable_content": true, "sound": "default", "image": "https://images.unsplash.com/photo-1472457897821-70d3819a0e24?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Mnx8c21hbGx8ZW58MHx8MHx8&w=1000&q=80" }, "data": { "imageUrl":"https://images.unsplash.com/photo-1472457897821-70d3819a0e24?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Mnx8c21hbGx8ZW58MHx8MHx8&w=1000&q=80", "openURL": "https://somelink.com", "title": "Notification", "subText": "Notification subText", "body": "body example", "mutable_content": true, "sound": "Tri-tone" } }
I want to get openURL from data because I want to open browser on push click with this link.
I got:
Data is empty...what's wrong with my code?
Thanks
Postman settings
Beta Was this translation helpful? Give feedback.
All reactions