Skip to content

[Issue]: Show the running patrol on the iOS lock screen #192

Description

@anis022

Branch Name

feature/ios-live-activity

Description

This is a stretch goal, do not start until the other issues are done.

A patroller locks their phone and puts it in a pocket. Today there is no way to check the patrol without unlocking. A Live Activity puts the elapsed time and distance straight on the lock screen and in the Dynamic Island.

Scope

  • Add a widget extension target to the Xcode project
  • Build the card in SwiftUI. Lock screen, compact, expanded and minimal are all required by Apple
  • Feed it from the native tracking service so the numbers keep moving with the app closed
  • Start it when a patrol starts and end it when the patrol ends
  • iOS 16.1 and up only, skip it below that

Acceptance Criteria

  • The card appears on the lock screen when a patrol starts
  • Time and distance keep updating with the app closed
  • It disappears when the patrol ends
  • Nothing breaks on an older iPhone

Notes

iOS only. Android shows the same numbers in its notification instead, which is far cheaper. Depends on the native point buffer. A Mac is required for all of it.

Checklist

  • I have checked for duplicate issues.
  • I have assigned the issue to the correct project board.
  • I have tagged the issue properly.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

front-endfront-end related issue

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions