RMSPushNotificationsBundle icon indicating copy to clipboard operation
RMSPushNotificationsBundle copied to clipboard

Message queue breaks when sending a message with empty setDeviceIdentifier()

Open martinsik opened this issue 8 years ago • 1 comments

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.

martinsik avatar Feb 08 '16 17:02 martinsik

foreaach with two a.

TheFox avatar Apr 27 '16 08:04 TheFox