codelab-friendlychat-web icon indicating copy to clipboard operation
codelab-friendlychat-web copied to clipboard

Firebase Error: Messaging: Missing App configuration value: "appId"

Open JamesVanWaza opened this issue 4 years ago • 2 comments

[REQUIRED] Codelab info

https://firebase.google.com/codelabs/firebase-web#10

[REQUIRED] Project setup

web-start

[REQUIRED] Describe the problem

I am currently running firebase 8.3.1 when running http://localhost:5000/__/firebase/init.js see screenshot to see only the variables being shown. The App ID is missing

Screen Shot 2021-03-22 at 9 55 19 AM

By default, this is how Firebase was imported Screen Shot 2021-03-22 at 10 00 58 AM

Screen Shot 2021-03-22 at 9 53 04 AM

[Optional] Suggested fix

This issue said it was resolved in 7.0.0 but is still recurring - https://github.com/firebase/firebase-js-sdk/issues/2287

JamesVanWaza avatar Mar 22 '21 13:03 JamesVanWaza

@JamesVanWaza this is an issue with the Firebase emulators and that __init.js file: https://github.com/firebase/firebase-tools/issues/2798

Seems like we need to update this codelab to encourage you to use the full explicit initialization instead: https://firebase.google.com/docs/web/setup

samtstern avatar Mar 22 '21 14:03 samtstern

@samtstern after updating to use the CDN it works, I was able to get FCM device token. If possible, in codelab we can change it to use CDN instead until fixed.

Actually the FCM token is showing, but error shows after reloading the page. Even though appId is included in index.html

JamesVanWaza avatar Mar 22 '21 14:03 JamesVanWaza