Skip to content

Commit

Permalink
Custom class for send message
Browse files Browse the repository at this point in the history
  • Loading branch information
intersvyaz-it committed Aug 10, 2022
1 parent 68a0088 commit 6d7f7a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Apns.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function send($token, $text, $payloadData = [], $args = [])
return null;
}

$message = new \ApnsPHP_Message($token);
$message = new \ApnsPHP_Message_Custom($token);
$message->setText($text);
foreach ($args as $method => $value) {
if (strpos($method, 'set') === false) {
Expand Down Expand Up @@ -208,4 +208,4 @@ public function __call($method, $params)

return parent::__call($method, $params);
}
}
}

0 comments on commit 6d7f7a3

Please sign in to comment.