Skip to content

android: notify users before device key expiry - #875

Merged
kari-ts merged 1 commit into
mainfrom
kari/nodeexpirynotif
Sep 17, 2026
Merged

kari-ts merged 1 commit into
mainfrom
kari/nodeexpirynotif

Conversation

@kari-ts

@kari-ts kari-ts commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

We were surfacing expiry warnings in-app when a netmap update caused the warning state to be recalculated. This change schedules a system notification using WorkManager, and reschedules when the expiry or configured warning window changes.

Updates tailscale/tailscale#20989

@hiimtmac hiimtmac left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should an expiry change defensively cancel any notification that has already been posted? I think this handles canceling the "work to schedule a notification" but if you had a notification already posted, did the re-auth, the notification could still be visible even though its no longer relevant? (I could be wrong about this tho!)

We were surfacing expiry warnings in-app when a netmap update caused the warning state to be recalculated. This change schedules a system notification using WorkManager, and reschedules when the expiry or configured warning window changes.

Updates tailscale/tailscale#20989

Signed-off-by: kari-ts <kari@tailscale.com>
@kari-ts
kari-ts force-pushed the kari/nodeexpirynotif branch from 2e6671e to ddbd72e Compare September 17, 2026 23:16
@kari-ts
kari-ts requested a review from hiimtmac September 17, 2026 23:17
@kari-ts

kari-ts commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator Author

Should an expiry change defensively cancel any notification that has already been posted? I think this handles canceling the "work to schedule a notification" but if you had a notification already posted, did the re-auth, the notification could still be visible even though its no longer relevant? (I could be wrong about this tho!)

yes, good catch! added a defensive cancelation

@kari-ts
kari-ts merged commit 0841833 into main Sep 17, 2026
5 checks passed
@kari-ts
kari-ts deleted the kari/nodeexpirynotif branch September 17, 2026 23:34
serein-213 pushed a commit to serein-213/tailscale-android that referenced this pull request Sep 21, 2026
We were surfacing expiry warnings in-app when a netmap update caused the warning state to be recalculated. This change schedules a system notification using WorkManager, and reschedules when the expiry or configured warning window changes.

Updates tailscale/tailscale#20989

Signed-off-by: kari-ts <kari@tailscale.com>
(cherry picked from commit 0841833)
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.

2 participants