Example #1
0
 /**
  * Compile the message and send to the APNS service
  * @param Interfaces\MessageInterface $message
  * @return void
  */
 public function sendMessage($message)
 {
     //@todo check interface
     $json = $message->toJSON();
     $token = $message->token;
     $this->request(Helpers\Common::getBinary($token, $json));
 }
Example #2
0
 /**
  * Compile the message and send to the APNS service
  * @param Interfaces\MessageInterface $message
  * @return void
  */
 public function sendMessage($message)
 {
     //@todo check interface
     $json = $message->toJSON();
     $this->request($json);
 }