static function validatePayloadLength($locKey, $locArgs, $message, $actionLocKey, $launchImage, $badge, $sound, $payload) { $json = ApnsUtils::processPayload($locKey, $locArgs, $message, $actionLocKey, $launchImage, $badge, $sound, $payload); return strlen($json); }