pushNotification ActionPerformed is not working in android

pushNotificationActionPerformed is not working in android device. I have tried on Android 13.
this is only happening when app is in foreground. Please check the versions details given below.

NodeJS : v12.14.1
npm : 6.13.4
Ionic CLI : 6.17.1
Ionic Framework: @ionic/angular 5.9.4
@angular-devkit/build-angular : 12.1.4
@angular-devkit/schematics: 12.2.17
@angular/cli : 12.1.4
@ionic/angular-toolkit : 4.0.0
Capacitor CLI : 4.6.1
@capacitor/android : 4.6.1
@capacitor/core : 4.6.1
@capacitor/ios : 4.6.1

You need to be on Capacitor 5 in order to support Android 13 officially. In 13, new push notification permissions were added which could be causing some of your problems.

Android 13 requires a permission check in order to receive push notifications. You are required to call checkPermissions() and requestPermissions() accordingly, when targeting SDK 33. - source