utils/u_web library

Classes

UPwa
Web only: install state and the iOS "Add to Home Screen" guide; every getter is false off the web. if (UPwa.canPromptIosInstall) UPwa.promptIosInstall()
UWebBuild
Fingerprint of a Flutter web build (the one a tab runs or the one the server has).
UWebMessage
Web only: listens to window.postMessage (IPG checkout pages, OAuth popups, parent iframes). Does nothing elsewhere.
UWebUpdate
Web only: keeps every open tab on the latest deployed build (clears stale caches/service workers); initU() already starts it. Build with --dart-define=U_BUILD_ID=<version> for exact checks. UWebUpdate.checkAndRefresh()

Typedefs

UWebMessageHandler = void Function(String origin, Map<String, dynamic> data)
Callback for window.postMessage: the sender's origin and its JSON data.