FCM registration failing


I'm having trouble connecting FCM to urban airship in order to send push notifications. The analytics side of things appears to work - I can look up my phone using it's channel id. The error I get in logcat is:

'UALib: Unable to register with FCM: Default FirebaseApp is not initialized in this process <package_name>. Make sure to call FirebaseApp.initializeApp(Context) first.'

Adding a call to FirebaseApp.initializeApp at the start of my applications onCreate doesn't address the issue, but adds a log call saying: 'FirebaseApp initialization unsuccessful'

I've tried changing out the FCM account and starting from a blank project and neither address the issue. 


Any ideas on how to debug this would be much appreciated.




Didn't find what you were looking for?

New post


1 comment

  • Hi Peter,

    Thank you for writing in to the Urban Airship Support Forum regarding your issue with the Firebase package.

    As a first pass at this, can I confirm that you've followed the steps detailed in our FCM Quickstart documentation for the Android SDK?

    You should just be able to use the Firebase Assistant in Android Studio to add the Firebase Messaging dependency as well as the google-services.json file necessary to use our FCM package.

    Comment actions Permalink

Please sign in to leave a comment.