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

HELP ME

–Thank you–





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

https://community.kodular.io/search?context=topic&context_id=233931&q=For%20a%20custom%20firebase%20host%20you%20must%20first%20set%20your%20authentication%20server%20before%20using%20authentication%20features&skip_context=true

Taifun

1 Like


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

you need to load the json to asset

google-services.json


I loaded

but it still be like that

image
the file isn’t wrong

https://community.kodular.io/search?q=firebase%20config%20error

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):

    FirebaseApp.initializeApp(this);
    
  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