Ionic push notification not working when app is foreground but background also working. i am useing cordova-plugin-firebasex as a devDependencies and @awesome-cordova-plugins/firebase-x as dependencies

foreground error → FirebasePlugin[native]: java.lang.NullPointerException: Attempt to invoke virtual method ‘java.lang.String android.net.Uri.toString()’ on a null object reference

You might have better luck reaching out in the repo itself and/or searching existing Issues in the repo - GitHub - dpa99c/cordova-plugin-firebasex: Cordova plugin for Google Firebase