Part of #1.
config/mobile.ts: ios + android blocks withgeolocation,backgroundLocation,keepAwake,pushNotifications;urlmode pointing at the deployed courier routes +fallbackWebAssets- Foreground:
watchPosition-> ping endpoint. Background:startRecording(native, survives restarts); on resume drainreadRecording()and POST to the backfill endpoint (cursor = last-sent timestamp) - Permission UX via NativePermissionButton (
locationthenlocationAlways); secureStorage for the courier token; push for offer notifications - Build:
buddy build:ios/buddy build:android(xcodegen; manual Xcode compile). Use craft-native from npm (0.0.79) - the pantry copy is stale - Verify on simulator/device: background recording + backfill roundtrip