Ionic 2 Push Notification In The Client Side

Hi everyone , i have a question.

I did the installation of Ionic 2 push notification with FCM and it works.

But ı want to send notification when I press the key in the application(client side) I made .

Can this be done?

yes this can be achieve.

Thank you , i try this now but i get a lot of error which is some important … Like Cannot find name barrer ${token}

token which is of your app in ionic server . read all the stuff.