The Mobile channel is sending messages as mobile push notification via the NotificationPusher library.
If you want to use this channel, the NotificationPusher
library
must be installed.
yokai_messenger:
channels:
mobile:
environment: dev # or prod
apns:
certificate: /path/to/your/apns-certificate.pem
pass_phrase: example
gcm:
api_key: YourApiKey
If you do not understand these parameters, please see the library documentation.
yokai_messenger:
messages:
-
id: <up to you>
channels: mobile # or [mobile, <any other channels ...>]
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Yokai\MessengerBundle\DependencyInjection\Factory\MessageDefinitionFactory;
public function load(array $configs, ContainerBuilder $container)
{
MessageDefinitionFactory::create($container, '<up to you>', ['mobile'], [], []);
}
This channel supports :
- objects that implements
Yokai\MessengerBundle\Recipient\MobileRecipientInterface
interface
None.