I am exploring Ionic 2 push plugin in my ionic application. I have added push plugin and send notification to my app. Now my requirement is to click on notification action button and how to link the callback within my code. Here I mentioned my notification JSON sample to push notification with action button.
"data":{
"title":"Data title",
"message":"Data message",
"information": "Information",
"actions": [
{ "icon": "approve_icon", "title": "APPROVE", "callback": "", "foreground": true},
{ "icon": "reject_icon", "title": "REJECT", "callback": "", "foreground": true}
]
}
Here I leave callback parameter as empty. how can I link my approve and reject method into this callback parameter. Help me please.