Ionic Push Notifications Foreground Notifications not TAPPABLE, ACTION PERFORMED not triggered

I have installed capacitor push notification on my ionic angular app.
Its all working correctly except MY ACTION PERFORMED in foreground notifications is not working.Here I am stuck.

See this discussion - Push Notifications click_action called before notification actually clicked

Supposedly in Push Notifications v4, presentationOptions is supposed to present the notification when the app is in the foreground. I am not sure if that change also allows for pushNotificationActionPerformed to be called. Prior to v4, I found that I needed to create a local notification from the push notification (example here).