public function message($token, $message)
{
PushNotification::app($this->certificate)->to($token)->send($message);
}
/** * pushMessage function * * method to dispatch iOS notifications * * @param Invoice $invoice * @param $token * @param $type */ private function pushMessage(Invoice $invoice, $token, $type) { $this->pushFactory->message($token, $this->messageType($invoice, $type)); }