PWA: {
    init(config: PWAConfig): void;
} = ...

GeoLeaf PWA Manager. Initializes the appropriate install prompt experience based on the platform.

Type declaration

  • init:function
    • Initializes the PWA install prompt for the current platform.

      • Opt-in: does nothing unless config.installPrompt.enabled === true.
      • iOS Safari: displays a bottom sheet with manual install instructions.
      • Other browsers: listens for beforeinstallprompt and shows a custom banner.

      Call this method after the GeoLeaf config has been loaded (i.e. from app/boot.ts).

      Parameters

      • config: PWAConfig

        PWA section from the loaded geoleaf.config.json.

      Returns void