Add mobile push notification type controls - #21
Merged
Merged
Conversation
Add eight switches to Settings > Notifications on iOS and Android for mentions, favorites, boosts, follows, follow requests, poll results, subscribed-account posts, and post edits. Preferences apply to all Mastodon accounts on the device and default to enabled to preserve existing behavior. Persist the alert choices in shared core settings and apply them when creating or renewing subscriptions. Add a patch command that saves individual changes and updates active subscriptions without replacing their endpoints or keys. Serialize updates so rapid changes accumulate, report failures by account, and retain saved choices for later renewal. Capture account snapshots for updates so removing an account cannot invalidate an in-flight request. Renew iOS subscriptions after accounts load and when an account is added. Guard late mobile registration callbacks after push is disabled. Add the shared alert catalog, matching native controls, and a user-facing changelog entry. Cover defaults, persistence, request payloads, rapid changes, partial failures, shutdown ordering, and restart renewal. Validation passed: 802 core checks, C-ABI smoke test, Android debug build and three unit tests, and unsigned iOS Debug device build. Live delivery and screen-reader checks remain for devices. Co-Authored-By: Codex <noreply@openai.com>
masonasons
pushed a commit
that referenced
this pull request
Sep 7, 2026
Bump the marketing version to 0.5.8 for the TestFlight release. The feature work (per-type mobile push controls, and the Bluesky link-finding fix) landed via #21; this carries the version to match the 0.5.8 changelog. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TdQ31PfMPdfTesyUThLjCr
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.
Mobile push notifications currently have one on/off switch and always request all eight supported alert types. This adds individual switches under Settings → Notifications on iOS and Android, so users can, for example, receive mentions while turning off favorites and boosts.
Choices apply to all Mastodon accounts on the device and default to on. They can be changed while push is off, survive restarts, and are applied during subscription creation and renewal. In-app notification lists and sounds stay independent; this feature is specific to mobile push.
Validation passed:
git diff --check.Live push delivery with the app closed and VoiceOver/TalkBack behavior still need device verification. Windows was not built locally.