I encountered this issue "Error from Companion: For a custom firebase host you must first set your authentication server before using authentication features!" and still can't solve it. Does anyone have experience or suggestions to help?
In the Firebase console, you need to, as a minumum, visit the Authentication section of your project. You may also need to setup email/password as a sign in method.
Note that the AI2 Firebase component will only work with project on the us-central server.
Note that the AI2 Firebase component does not work if you use Firebase Authentication.
You might consider this approach instead (note that there are also a couple of free extensions that also provide access)
Thank you very much, Master. Your advice is better than Chat AI. I have noticed one issue:
"Note that the AI2 Firebase component will only work with a project on the us-central server." I am using (asia-southeast1), but it is strange that data is being saved to Firebase Real-Time Database. However, it always shows the message "Error from Companion: For a custom firebase host you must first set your authentication server before using authentication features!" on the website.
Additionally, there is another point: "Note that the AI2 Firebase component does not work if you use Firebase Authentication." I don't fully understand this — does it mean using email login as well? I’m not very good at English, so I might not fully understand. Thank you very much. I will try to fix it. Please continue to advise me when I encounter more issues.
Did you visit the Authentication page ? (to get rid of that error)
Have you set any secure rules ?
If you use Firebase Authentication as you signup/signin process, sending/receiving data using the Firebase component will not work, because it does not recognise the secure rules in place.
I should have been more specific, if you set secure rules in your firebase project, to tie in with the use of firebase authentication, the firebase component will not work.
I guess you could just use Firebase Authentication for user authentication and management, and then keep your data read and write: true
data read and write: true = Yes
"But I somewhat understand that if it's not True, it won't work, right?
Do you happen to have a solution?
The link you provided is interesting, and it's in my country's language too. But I want to try using the Authenticator email extension because it seems easier to me. "
"I have made the changes, but saving still doesn't work; I can only sign up. (I'm not sure if email verification is required first.)"
"The ResponseCode I received when performing PutIn is 404."
Check the values from the SignIn event, are you getting an idToken (should be a very long string of characters), and a localId token (a shorter string of characters)