wtg / Shuttle-Tracker-SwiftUI

Rensselaer campus shuttle tracker
https://shuttletracker.app
Mozilla Public License 2.0
9 stars 2 forks source link

Full Live Activity functionality #103

Open Gerzer opened 1 year ago

Gerzer commented 1 year ago

We should add a Live Activity for when the user is actively crowd-sourcing. Users of the newly announced iPhone 14 Pro and iPhone 14 Pro Max will particularly appreciate this feature because of its integration with the Dynamic Island!

Live Activities are newly enabled in iOS 16 via the ActivityKit framework, but it looks like the relevant Apple Developer documentation page is broken currently, so we might have to wait for Apple to fix that before implementing the feature.

It’s unclear whether Live Activities are supported in App Clips. If they are, then we should definitely include the feature in our App Clip.

Gerzer commented 1 year ago

The original plan for the Live Activity was to display a live map of the route, but maps are unsupported in WidgetKit. The new plan is to display a linearized version of the route with upcoming stop indicators that slide from right to left as the user moves along the route. This client-side functionality is blocked until the @wtg/server team implements its planned progress-along-route algorithm and updates the API to make those data available to clients. As a result, this issue might need to be pushed out beyond version 1.6.

Gerzer commented 1 year ago

I’m pushing this feature out beyond version 2.0. Before the 2.0 update (perhaps a 1.7 update?), I would like to implement a much more limited Live Activity that just shows Board Bus debug information. This will be tracked in #59.