Close app on notification click

Hello ,
I have used this https://docs.ionic.io/services/push/ for push notification all are working good nut when i click on notification app will closed.

I have used ionic push api

What platform: iOS or Android?
Real devices or simulator/emulator? What kind?

How are you displaying push notifications right now?
What is your code to handle the notifications?