Push notification action button with callback

I am beginner in ionic app development.I am using ionic1 version.I am using cordova fcm plugins for notification.The notification getting successfully not i want to add action button on notification.
I am using data notification using nodeJS.

you can use $IonicPopup()

i have mine doing something simular where i save a date to calandar.

$ionicPopup.show({
    template: message,
    cssClass: 'popup-vertical-buttons',
    buttons: [
        {
            text:"Ok",
            type:'button-energized'
        },
        {
            text:"Save To Calender",
            type:'button-dark',
            onTap: function() {
                saveToCalendar(notification)
            }
        }
    ];
});

what are changes need firebase plugin