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.
The last fix seems to pose a problem
In the case of a payload containing several recipients, the line
exponent/client.go
Line 95 in f2c95e8
causes an index out of bouds when adding message items in each response object.
Match each MessageItem with the response id.
According to the expo documentation, the output order of push token receipts is guaranteed by following the order of the messages in the input payload.
This merge request offers a solution issue #1 on mismatched response length.
The signature of the push single method had to be adapted to return an array of MessageResponse (one for each recipient of the Message).
Also fixes the NewClient with nil argument to avoid panic on nil pointer exception.
Update readme to match new function signature.
Contains breaking changes on push single method.
Thanks