Repository navigation
Conversation
…heir fix parses A native push's sound, category and channelId now accept A-Za-z0-9._- in every position, as documented, so a leading '_' no longer fails the send. X_NOTIFY_PUSH_MESSAGE_INVALID for a native field prints a fix that parses (the notifier's message with that field set) and describes an interruption level as one of APNs' fixed values. Docs state what an unset sound does, FCM's res/raw naming, and that a credential refusal rejects the send, so NativePushReport.skipped counts only devices with no provider configured. Tests cover screening for a recipient with no device and each way the report counts a removed row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sebyx07
force-pushed
the
fix/notify-push-review
branch
from
November 24, 2026 09:14
a6d59c7 to
8ff5fc8
Compare
This branch has not been deployed
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.
Follow-up to the review threads on #1317.
What changes
sound,categoryandchannelIdon a native push acceptA-Za-z0-9._-in every position, as documented. Before, a leading_,.or-(channelId: '_mentions') failed the whole send. Widening only, so nothing that sent before is refused now. APNs categories and Android channel ids are arbitrary strings; a sound is a file or resource name. (thread, thread)X_NOTIFY_PUSH_MESSAGE_INVALIDfor a native field prints afix:that parses: the notifier's ownmessagewith that field set, e.g.pushChannel({ pusher, message: (args) => ({ ...message(args), sound: 'default' }) }). Its cause calls an interruption level one of APNs' fixed values, not a name the app registers. (thread, thread)soundis'default'or a bundled sound. APNs reads the file name and FCM theres/rawname without the extension. On Android 8+ the notification channel sets the sound, and withsoundunset APNs alerts silently. (thread, thread)NativePushReport.skippedcounts only devices whose platform has no provider. (thread)native-push-report.test.ts): a bad field is refused for a recipient with no devices, which proves screening runs before the lookup (thread).removedcounts an unsendable stored token and a bad token at its limit, each beside an accepted device (thread). Each field's fix transpiles.Not changed: the return-type thread (thread) was already settled by #1324.
Pusher,DataPusherandNativePusherreturn what they did before #1317.Gate
bun test ./packages/notify/src/: 280 pass.tsc --noEmit -p packages/notify: clean.bun run verify: every step green exceptunit, which hit its deadline under machine load with two unrelated files (packages/cli/src/verify-shard.test.ts,packages/core/src/env.test.ts) SIGKILLed. Both pass when run alone (29/29).🤖 Generated with Claude Code