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(
at com.getcapacitor.Bridge$$ Source:8)
at android.os.Handler.handleCallback(
at android.os.Handler.dispatchMessage(
at android.os.Looper.loop(
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.getcapacitor.PluginHandle.invoke(
at com.getcapacitor.Bridge.lambda$callPluginMethod$0$com-getcapacitor-Bridge(
… 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.capacitorjs.plugins.pushnotifications.PushNotificationsPlugin.register(
… 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