immobiliare / ApnsPHP

ApnsPHP: Apple Push Notification & Feedback Provider
BSD 3-Clause "New" or "Revised" License
1.44k stars 452 forks source link

getErrors With Multiple Recipients Inefficient #57

Closed ctsstc closed 9 years ago

ctsstc commented 10 years ago

$push->getErrors() with $message->addRecipient($token->token);

Instead of being like Error = [ recipients[messageData],.. ]

It would make more sense to be structured like so:

Error = [ messageData, recipients[] ]

This way the message data is not repeated for every recipient because they all share the same message data anyways.