Additional empty token on blank notification factory call
peterpro opened this issue · 2 comments
peterpro commented
PoC:
$FC = $this->getContainer()->get('redjan_ym_fcm.client');
$N = $FC->createDeviceNotification();
$N->setDeviceToken('blabla');
$output->writeln(print_r($N->getDeviceTokens(),1));
returns
Array
(
[0] =>
[1] => blabla
)
It's really confusing, because it leads to following response from API:
{"multicast_id":xxx,"success":1,"failure":1,"canonical_ids":0,"results":[{"error":"InvalidRegistration"},{"message_id":"xxx"}]}
BTW, thanks for great bundle! :)