Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated ApnsConnection createBatch #885

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

chillNZ
Copy link

@chillNZ chillNZ commented Sep 3, 2018

Fixed one ApnsNotification failing validation in ToBytes() causing the whole batch to fail - now triggers CompleteFailed for the notifications that fail validation, skips them and continues to send the rest. Doesn't rely on a regex to find the failed notifications (as soon as they fail it removes them from the payload and calls the failed event). Also now tracks the state of the CompletableApnsNotification as they can fail before being sent now (during validation). Written to solve: #713

Fixed one ApnsNotification failing validation in ToBytes() causing the whole batch to fail - now triggers CompleteFailed for the notifications that fail validation, skips them and continues to send the rest.
Fixed bug introduced in commit 43b4f2e where the notifications that failed validation were being added to the list of sent notifications, which causes the response processing code to attempt to CompleteSuccessfully them when another notification is returned from apple with a failure.
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.

None yet

1 participant