You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(app, other): add a note about dynamic initialization on other
this was confusing to users because the install notes are very specific
about how to do initialization with the firebase config on the native platforms,
but there was no mention of the completely different style needed for "other" / web
Copy file name to clipboardExpand all lines: docs/index.md
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -245,6 +245,32 @@ If you are using the [Expo Tools](https://marketplace.visualstudio.com/items?ite
245
245
246
246
---
247
247
248
+
## Other / Web
249
+
250
+
If you are using the firebase-js-sdk fallback support for [web or "other" platforms](platforms#other-platforms) then you must initialize Firebase dynamically by calling [`initializeApp`](/reference/app#initializeApp).
251
+
252
+
However, you only want to do this for the web platform. For non-web / native apps the "default" firebase app instance will already be configured by the native google-services.json / GoogleServices-Info.plist files as mentioned above.
253
+
254
+
At some point during your application's bootstrap processes, initialize firebase like this:
0 commit comments