From 6d7f7a39ddb674c8ce84915996bd0c3a8baae0a6 Mon Sep 17 00:00:00 2001 From: vasepov Date: Wed, 10 Aug 2022 09:27:49 +0500 Subject: [PATCH] Custom class for send message --- Apns.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Apns.php b/Apns.php index c1cd96e..8a02a9a 100644 --- a/Apns.php +++ b/Apns.php @@ -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) { @@ -208,4 +208,4 @@ public function __call($method, $params) return parent::__call($method, $params); } -} \ No newline at end of file +}