Example #1
0
 /**
  * Sends a safari website push notification to the given deviceToken.
  *
  * @param string $deviceToken
  * @param string $title 
  * @param string $body
  * @param string $deepLink
  */
 public function send($deviceToken, $title, $body, $deepLink = null)
 {
     return $this->client->sendPayload($deviceToken, $this->createPayload($title, $body, $deepLink));
 }
Example #2
0
 /**
  * Sends a safari website push notification to the given deviceToken.
  * @param string $deviceToken
  * @param string $title
  * @param string $body
  * @param string $deepLink
  * @param array $extend
  * @return int
  */
 public function send($deviceToken, $title, $body, $deepLink = null, $extend = array())
 {
     return $this->client->sendPayload($deviceToken, $this->createPayload($title, $body, $deepLink, $extend));
 }