LifeMate — Personal, Family & Learning Companion

phase-1/foundation-completion
chore/phase1-repository-cleanup deploy/stable-web-apk deployment-static design/mobile-accessibility-v2 design/mobile-navigation-review docs/child-education-access-decision docs/offline-data-rescue-options docs/owner-guide-and-delivery-plan docs/phase1-policy-options docs/public-review-live-2026-10-15 feat/aparat-learning-library feat/child-device-safety feat/child-identity-schema feat/flutter-mobile-navigation feat/learning-content-operations feat/local-signing-preflight feat/online-family-stage0 feat/personal-encrypted-recovery feat/private-planner-series-api feat/public-review-page feat/standalone-weekly-planner feat/weekly-planner-android final-feature-1/iran-family-school fix/auth-abuse-expiry-safety fix/auth-expiry-after-lock fix/backend-request-safety fix/lifeguide-bootstrap-naming-ci fix/lifeguide-pages-qa-base-preflight fix/lifeguide-qa-pages-env-deployment fix/local-task-persistence fix/managed-child-session-boundary fix/personal-jalali-dates fix/personal-notification-controls fix/personal-upgrade-delivery-guard fix/sms-approval-gates fix/study-duration-display infra/cloudflare-neon-migration infra/lifeguide-cloudflare-qa infra/lifeguide-github-pages-qa infra/lifeguide-supabase-qa main phase-1/foundation-completion phase-2/product-foundation-identity phase-3/planner-school-family-core phase-4/ai-learning-wellbeing phase-5/hardening-observability-release test/android-reminder-acceptance test/personal-notification-settings test/personal-recovery-acceptance test/role-entry-apk
md 2.21 KB

LifeMate — PWA Platform Constraints v1

iPhone/iPad install model

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.

Push

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.

Service worker / offline

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.

Storage assumptions

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.

Background behavior

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.

Install UX

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.

Phase 2 smoke matrix

  • Android current supported baseline: install, auth, navigation, notifications when implemented.
  • iPhone Safari: login/recovery/responsive layout.
  • iPhone Home Screen: standalone launch, icon, safe areas, auth persistence, deep link/recovery, push capability where OS supports it.
  • Desktop Chrome/Edge/Safari: responsive core flows.

Sources validated in Phase 1

Official WebKit documentation for iOS/iPadOS Home Screen Web Push and official Flutter Web FAQ/initialization documentation for PWA suitability and service-worker behavior.