/**
  * @param Notification $notification
  */
 public function dispatchPushMessages(Notification $notification)
 {
     $deviceTokens = $this->deviceRepository->getNotificationTokens($notification);
     foreach ($deviceTokens as $deviceToken) {
         $pushNotification = $this->createMessage($notification, $deviceToken);
         $this->notificationsService->send($pushNotification);
     }
 }
 /**
  * executeRms
  */
 protected function executeRms()
 {
     $message = $this->input->getArgument('message');
     $device = $this->input->getArgument('device');
     $pushNotification = new iOSMessage();
     $pushNotification->setMessage($message);
     $pushNotification->setDeviceIdentifier($device);
     $this->notifications->send($pushNotification);
 }