Repository navigation
Optional Apple push for a companion iOS app - #16
Merged
Merged
Conversation
- /api/devices registers alert, push-to-start and Live Activity tokens per user, with per-device alert choices. /api/push says if it's on. - Alerts: net open, first-time check-in, no audio for AUDIO_ALERT_MIN minutes during an open net. - Live Activity: starts when a net opens (manual or scheduled), updates on every check-in change, ends 15 minutes after the net closes. - APNs over HTTP/2 with an ES256 token from a .p8 key; dead tokens are dropped. Sends run on a background thread. - Off unless APNS_KEY_FILE, APNS_KEY_ID, APNS_TEAM_ID and APNS_TOPIC are set. New dependencies: httpx[http2], cryptography.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
per user, with per-device alert choices. /api/push says if it's on.
minutes during an open net.
on every check-in change, ends 15 minutes after the net closes.
dropped. Sends run on a background thread.
are set. New dependencies: httpx[http2], cryptography.