Online users count, Firebase config file error

Help me, I’m making app about online users count but something wrong. When I opened app, It showed a notification “For a custom firebase host you must first set your authentication server before using authentication features”. You can see codes, objects here


–Thank you–

Search the community for
For a custom firebase host you must first set your authentication server before using authentication features


1 Like

I clicked “view log” and it showed as a new tab

you need to load the json to asset


I loaded

but it still be like that

the file isn’t wrong

please search in community

1 Like

The error message you’re encountering, “For a custom Firebase host you must first set your authentication server before using authentication features,” suggests that there might be an issue with your Firebase configuration related to authentication. It seems like you’re trying to use Firebase authentication features, but your configuration might not be set up correctly.

Here are some steps you can take to troubleshoot and resolve this issue:

  1. Check Firebase Console: Make sure you have properly set up Firebase Authentication in the Firebase Console for your project.

  2. API Key and Configuration: Double-check that you’ve integrated the correct Firebase API key and configuration settings in your app. These settings are necessary for authentication to work properly.

  3. Authentication Provider: Ensure you’ve configured at least one authentication provider (e.g., Email/Password, Google, Facebook) in your Firebase project. This allows users to authenticate using different methods.

  4. Authentication Server: The error message mentions an “authentication server.” Verify that you’ve set up the authentication domain or server properly in your Firebase settings. It might be related to your custom Firebase host.

  5. Network Connection: Make sure your device has an active internet connection. Firebase authentication requires a network connection to work.

  6. Firebase Initialization: Check that you’re initializing Firebase correctly in your app. You should have code that looks like this (usually in the onCreate method of your main activity):

  7. Library Versions: Ensure that you’re using compatible versions of the Firebase SDK and other related libraries. Mismatched library versions can sometimes lead to unexpected behavior.

  8. Review Your Code: Double-check your code where you’re trying to use Firebase Authentication features. Make sure you’re correctly handling authentication-related calls and errors.

  9. Documentation: Refer to the Firebase Authentication documentation for your chosen platform (Android or iOS) to ensure you’re following the correct integration steps.

If you’re still facing issues after checking the above steps, it might be helpful to share relevant parts of your code (without sensitive information) so that I can provide more specific guidance.

1 Like

Thank you very much I’m done!

1 Like

Are sure ChatGPT response which is irrelevant to Kodular/AppInventor is solution to your issue?
I am curious to know how.

1 Like

Thank you for suggesting, I’m done!

Then don’t mislead users to a wrong solution.

1 Like

Can you post blocks images showing how to put this code in my app?

1 Like