public function send(MessageInterface $message)
    {
        if (!$this->supports($message->getTargetOS())) {
            throw new \RuntimeException("OS type {$message->getTargetOS()} not supported");
        }

        return $this->handlers[$message->getTargetOS()]->send($message);
    }
public function send(MessageInterface $message)
    {
        if (!$this->supports($message->getTargetOS())) {
            throw new \RuntimeException("OS type {$message->getTargetOS()} not supported");
        }

        return $this->handlers[$message->getTargetOS()]->send($message);
    }
public function send ( MessageInterface $ message ) { if ( ! $ this -> supports ( $ message -> getTargetOS ( ) ) ) { throw new \ RuntimeException ( "OS type {$message->getTargetOS()} not supported" ) ; } return $ this -> handlers [ $ message -> getTargetOS ( ) ] -> send ( $ message ) ; }
Sends a message to a device, identified by
the OS and the supplied device token

@param  \RMS\PushNotificationsBundle\Message\MessageInterface $message
@throws \RuntimeException
@return bool
Sends a message to a device identified by the OS and the supplied device token