@davoodmehraban89 / LifeMate / commits / cdc9e13
Fork 0

LifeMate — Personal, Family & Learning Companion

docs: record PWA platform constraints

davoodmehraban89 committed Oct 5, 2026 at 06:27 UTC cdc9e13e3f84769cc8d914acecf6216d95237159
1 file changed +28
docs/architecture/PWA_PLATFORM_CONSTRAINTS_V1.md new
+28
@@ -0,0 +1,28 @@
1 +# LifeMate — PWA Platform Constraints v1
2 +
3 +## iPhone/iPad install model
4 +LifeMate must include a Web App Manifest and standalone display behavior plus explicit icons. On iOS/iPadOS, a Home Screen web app can open as its own app-like surface rather than a normal browser tab. `apple-touch-icon` is provided intentionally for icon quality.
5 +
6 +## Push
7 +Web Push is supported for Home Screen web apps on iOS/iPadOS 16.4+. Permission must be requested in response to user interaction. Therefore notification onboarding must feature-detect capability and explain installation/permission rather than assuming push exists in an ordinary Safari tab.
8 +
9 +## Service worker / offline
10 +Current Flutter web does not provide a managed caching service worker by default. LifeMate must own its caching strategy. Phase 2 begins with conservative app-shell/static caching; offline data editing is added only per domain after conflict semantics are defined.
11 +
12 +## Storage assumptions
13 +Browser storage is a cache, not the authoritative database. Critical user data must sync to the backend when connectivity exists. The UX must tolerate local cache eviction and rehydration.
14 +
15 +## Background behavior
16 +Do not design correctness around background sync/execution. Reminders requiring guaranteed server-side timing should be generated from backend scheduling/push infrastructure; client background execution is an optimization only.
17 +
18 +## Install UX
19 +Provide a contextual install guide when capability/platform warrants it. Do not repeatedly nag. After installation, standalone safe-area layout, status-bar/theme metadata, deep-link/recovery redirect behavior and keyboard handling must be tested on real iPhone Safari/Home Screen.
20 +
21 +## Phase 2 smoke matrix
22 +- Android current supported baseline: install, auth, navigation, notifications when implemented.
23 +- iPhone Safari: login/recovery/responsive layout.
24 +- iPhone Home Screen: standalone launch, icon, safe areas, auth persistence, deep link/recovery, push capability where OS supports it.
25 +- Desktop Chrome/Edge/Safari: responsive core flows.
26 +
27 +## Sources validated in Phase 1
28 +Official WebKit documentation for iOS/iPadOS Home Screen Web Push and official Flutter Web FAQ/initialization documentation for PWA suitability and service-worker behavior.
\ No newline at end of file