Ionic capacitor push notification crashes on pushnotification.register()

ionic capacitor push notification crashes on pushnotification.register()

App crash on startup when enable push notifications

Error report :
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.getcapacitor.Bridge.lambda$callPluginMethod$0$com-getcapacitor-Bridge(Bridge.java:772)
at com.getcapacitor.Bridge$$ExternalSyntheticLambda5.run(Unknown Source:8)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:224)
at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.getcapacitor.PluginHandle.invoke(PluginHandle.java:138)
at com.getcapacitor.Bridge.lambda$callPluginMethod$0$com-getcapacitor-Bridge(Bridge.java:763)
… 5 more
Caused by: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process io.ionic.starter. Make sure to call FirebaseApp.initializeApp(Context) first.
at com.google.firebase.FirebaseApp.getInstance(FirebaseApp.java:184)
at com.google.firebase.messaging.FirebaseMessaging.getInstance(FirebaseMessaging.java:137)
at com.capacitorjs.plugins.pushnotifications.PushNotificationsPlugin.register(PushNotificationsPlugin.java:76)
… 8 more

did you put the google-services.json file inside projectName/android/app/ folder?

Yes,I did Push Notification was working fine for me,one of my teammate installed cordova social-plugins and later on could.nt take new build .So i removed existing android platform and added new android platform…But later on build apk after installation crashes almost instantly with
above error report