GeoLeaf Core API - v3.19.0
    Preparing search index...

    Variable PwaLifecycleConst

    PwaLifecycle: {
        init(pwaConfig?: PwaLifecycleConfig, profileId?: string | null): void;
        _reset(): void;
    } = ...

    Lifecycle for the PWA capability (SW registration + persistent storage + install prompt).

    Type Declaration

    • init: function
      • Parameters

        • OptionalpwaConfig: PwaLifecycleConfig

          modules.pwa, merged.

        • OptionalprofileId: string | null

          The active profile: the id under which this context holds the worker.

        Returns void

    • _reset: function
      • Registry destroy / test seam: unregisters GeoLeaf's own service worker AND tears down the install sub-flows. The SW is stateless per boot, but the install-prompt and iOS banner hold global listeners / a pending timer that must be released.

        ⚠️ Same narrowing as init()'s closed gate: a teardown must not revoke a worker the host application installed.

        ⚠️ A teardown is not a withdrawal: the holders on record stay, and while there is one the worker stays too. Unregistering it here would cost the next offline load of this very context — and of any other that holds it — its worker.

        Returns void