CingChat for iPhone · iOS 0.14.0 (14) Development prompt · §04 · Live location Extend the location form with a choice between a single pin and live sharing for 15, 60 or 480 minutes. Use CingChat Android 1.0.83 at commit 14284dee1db4ece424f07f8376d770c0b396e23d as the reference. Keep single-pin behavior from iOS 0.13.0. Provide Russian and English labels and make states accessible to VoiceOver. Accept a measurement aged 0–120 seconds in the preview. Record the monotonic acceptance time separately. On the first confirmation, accept an elapsed time of 0–60 seconds inclusive. Do not apply that check when retrying an already submitted message with its frozen payload. Use Core Location While Using the App authorization. Create a message through POST /v1/chats/{id}/messages with the original clientId, liveLocation.durationMinutes and optional replyTo. The initial POST carries session details only. After a lost acknowledgement, retry with the same UUID, duration and replyTo. The new card waits for the first server-accepted point. Load mutable information from /v1/chats/{id}/messages/{messageId}/live-location. Pass membership context in group chats. In the foreground, GET the current version, then PUT the point, ageMs and version. Refresh and publish about every 15 seconds even when stationary. Accept measurements aged 0–119999 ms for publication. On HTTP 409 reread the version. Server time governs expiration and point freshness. The recipient refreshes a visible active card about every five seconds. Hide the point after 120 seconds, accounting for its age with the sender and time in transit, and at expiresAt. Reuse the single-pin formatting and Maps action. End active tasks on backgrounding, cancellation, loss of rights or expiration. Persist only the active sharing identifier, context and intent to stop in protected storage, keyed to the account, session, chat and current membership. Keep coordinates out of disk queues. The old session must cease publishing on sign-out or account change. On stop, cancel observation immediately and queue DELETE for retry if offline. Repeating DELETE as the owner with valid access returns active=false. Only the sender may PUT or DELETE. On 401, 403, 404 or 410 stop retrying that session. Revocation of location permission stops measurements and ends sharing when online. Apply current membership rules after rejoining a chat. Deleting the message removes the card and access to its point. Preserve the server restriction on forwarding live sessions. On two iPhone sizes, exercise sender and receiver separately with reproducible synthetic coordinates. Verify both directions with Android 1.0.83, a lost start acknowledgement, version conflict, permission revocation, session change, backgrounding, an offline stop, stale positions and expiry. Use a controlled server clock for longer intervals and identify it in the report. Use foreground location permission only and leave the background location mode disabled. Report the build identifier, results, screenshots from both platforms when available and the physical-iPhone status. Android client https://github.com/cingchat1/cingchat/blob/14284dee1db4ece424f07f8376d770c0b396e23d/core/src/main/java/com/cinggroup/core/LiveLocation.kt Location form and durations https://github.com/cingchat1/cingchat/blob/14284dee1db4ece424f07f8376d770c0b396e23d/core/src/main/java/com/cinggroup/core/ChatLocation.kt#L143 Server contract https://github.com/cingchat1/cingchat/blob/14284dee1db4ece424f07f8376d770c0b396e23d/backend/src/chats.ts#L299 Rights, versions and expiry checks https://github.com/cingchat1/cingchat/blob/14284dee1db4ece424f07f8376d770c0b396e23d/backend/test/chats-http.test.ts#L765