Skip to content

feat(app): Firebase-free embeddedPreview bootstrap#1438

Closed
SERDUN wants to merge 1 commit into
developfrom
feat/embedded-preview-firebase-free
Closed

feat(app): Firebase-free embeddedPreview bootstrap#1438
SERDUN wants to merge 1 commit into
developfrom
feat/embedded-preview-firebase-free

Conversation

@SERDUN

@SERDUN SERDUN commented Jun 23, 2026

Copy link
Copy Markdown
Member

Overview

Add an embeddedPreview mode so webtrit_phone can run inside another Flutter host (the theme configurator's realtime preview), where the host owns the default Firebase app — which may be misconfigured or absent (locally the configurator's app has an empty projectId), so any Firebase touch in the embedded app would throw.

  • bootstrap({bool embeddedPreview = false}): when embedded, skip Firebase app/messaging/local-push init, use SharedPreferencesAppIdProvider instead of the Installations-backed FirebaseAppIdProvider, and skip Firebase Remote Config.
  • RootApp/App take an embeddedPreview flag; the analytics provider becomes lazy (create: instead of .value) and the analytics navigator observer is skipped when embedded, so FirebaseAnalytics.instance is never touched.

Why

First half of the embedded-host support for the realtime-preview epic (split from #1437). The second half — driving the live theme/feature config into the embedded app via external streams — is a follow-up PR stacked on this one.

Notes

  • Standalone behaviour is unchanged: embeddedPreview defaults to false.
  • flutter analyze lib green.

Add an embeddedPreview mode so webtrit_phone can run inside another Flutter host
(the theme configurator's realtime preview) that owns a possibly
misconfigured/absent default Firebase app.

- bootstrap({embeddedPreview}) skips Firebase app/messaging/local-push init,
  uses SharedPreferencesAppIdProvider instead of the Installations-backed
  FirebaseAppIdProvider, and skips Firebase Remote Config.
- RootApp/App take an embeddedPreview flag; the analytics provider becomes lazy
  and the analytics navigator observer is skipped when embedded, so
  FirebaseAnalytics.instance is never touched.

Standalone behaviour is unchanged (embeddedPreview defaults to false).
@SERDUN

SERDUN commented Jun 23, 2026

Copy link
Copy Markdown
Member Author

Closing — reworking the embedded-host support into a cleaner single abstraction.

@SERDUN SERDUN closed this Jun 23, 2026
@SERDUN SERDUN deleted the feat/embedded-preview-firebase-free branch June 23, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant