Clear notification when push arrives and user click on icon app

Hello there! this si my first post and im not very good at english…

Im working with ionic 3 and phonegap… im doing a notification app
Im having problems when the push arrives and the user don’t click in the push … the user click on the app icon the push notificitacion doesn’t delete…like instagram Facebook messenger or even WhatsApp.
Has anyone experience this??
Any help will be appreciated

thanks in advance



P.S: pushObject is the result of init in this example

this.pushObject = this.push.init

it doesn’t work =(, i need the push notification disappear from the notification bar in the upper side of the device… i have read a lot and nothing came up.