Error from Companion: Default FirebaseApp is not initialized in this process com.appzard.companion. Make sure to call FirebaseApp.initializeApp(Context) first

Hi! I’m JESB Diital, I use appzard to develop my projects, I’ve been facing an error when helping a firebase component, that is FIREBASE AUTH, the following error appears:

Error from Companion: Default FirebaseApp is not initialized in this process com.appzard.companion. Make sure to call FirebaseApp.initializeApp(Context) first.

How can I solve this problem?

For companion, you need to manually initialize the firebase using FirebaseCore. In companion, the InitializeWithJsonFile will not work.

1st:
When screen1 initialized
Initialized firebase core.

When SIGNUP_BUTTON click
Initialized firebase Authentication

Note: Open your project json file you’ll get all your important data, and then fillup from json into your Firebase core. Make sure not to check initialised with json.

Then if you want to store in realtime database you’ll need to initialized database again.

Setup your block accordingly.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.