Skip to content

Use the shared LF Hub APN key for the Live Activity - #843

Open
bjorkert wants to merge 1 commit into
devfrom
fix/la-hub-shared-apn-key
Open

bjorkert wants to merge 1 commit into
devfrom
fix/la-hub-shared-apn-key

Conversation

@bjorkert

Copy link
Copy Markdown
Member

A phone that joined LF Hub with an invite, or has no APN key of its own, gets notifications through the key an admin shares. The Live Activity now works on such a phone: the app starts it locally once the hub reports the key as shared, and the hub updates and renews it. The app skips push-to-start and the credentials notification in that case, and the notification explains the Background Refresh choice when the phone leaves Hub mode. The APN screen shows that the key is shared by LF Hub and stays editable, since remote control signs with this phone's own key.

Remote settings exports carry the key that signs commands, so a phone of the same team gets LoopFollow's own key from them. An APN settings export carries its team and is refused by a LoopFollow built with another team. A same-team remote key becomes LoopFollow's own key on import and in migration step 11.

A phone that joined with an invite or has no APN key of its own now starts the Live Activity locally once the hub shares an admin's key, and the hub updates and renews it. The app no longer tries push-to-start or shows the credentials notification in that case, and the APN screen stays editable so a key for remote control can be added. Remote settings exports carry the key that signs commands, and a same-team remote key becomes LoopFollow's own key on import and in a migration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant