RMSPushNotificationsBundle
RMSPushNotificationsBundle copied to clipboard
Message queue breaks when sending a message with empty setDeviceIdentifier()
It seems like the message queue stops sending messages when you try to send a message with empty device identifier:
$pushNotifications = $this->container->get('rms_push_notifications');
$devices = ['abc', null, 'xyz'];
foreaach ($devices as $di) {
$iosMessage = new iOSMessage();
$iosMessage->setMessage('message');
$iosMessage->setAPSSound('default');
$iosMessage->setAPSBadge(1);
$iosMessage->setDeviceIdentifier($di);
$pushNotifications->send($iosMessage);
}
The first device xyz
will receive a notification while xyz
won't.
foreaach
with two a
.