141 if (is_string($messageArray[
"TITLE"]) && $messageArray[
"TITLE"] !=
"")
143 $title = Encoding::convertEncoding($messageArray[
"TITLE"], SITE_CHARSET,
"utf-8");
148 if (is_string($messageArray[
"MESSAGE"]) && $messageArray[
"MESSAGE"] !=
"")
150 $text = Encoding::convertEncoding($messageArray[
"MESSAGE"], SITE_CHARSET,
"utf-8");
153 if (is_string($messageArray[
"SOUND"]) && $messageArray[
"SOUND"] !=
"")
155 $this->
setSound($messageArray[
"SOUND"]);
159 if (isset($messageArray[
"CATEGORY"]))
164 if (array_key_exists(
"EXPIRY", $messageArray))
166 $expiry = (int)$messageArray[
"EXPIRY"];
170 if (isset($messageArray[
"PARAMS"]))
174 (is_array($messageArray[
"PARAMS"]) ? json_encode($messageArray[
"PARAMS"]) : $messageArray[
"PARAMS"])
178 if (is_array($messageArray[
"ADVANCED_PARAMS"]))
180 $messageArray[
"ADVANCED_PARAMS"] = Encoding::convertEncoding($messageArray[
"ADVANCED_PARAMS"], SITE_CHARSET,
"utf-8");
181 if (array_key_exists(
"senderMessage", $messageArray[
"ADVANCED_PARAMS"]))
186 foreach ($messageArray[
"ADVANCED_PARAMS"] as $param => $value)
192 $badge = (int)($messageArray[
"BADGE"] ?? 0);