通过下面代码设置的标签:
$client->device()->addTags($registration_id, 'test');
通过下面代码推送的消息
$result = self::getClient()->push()
->setPlatform(['ios', 'android'])
->addTag(['test'])
->setNotificationAlert($content)
->options([
'time_to_live' => JpushMapper::TIME_TO_LIVE,
'apns_production' => false
])
->androidNotification ($content, [
'extras' => $params,
])
->iosNotification($content, [
'sound' => '1',
'content-available' => true,
'extras' => $params
])
->send();
Message: ID58546843444131131
但是ios收不到? 看下什么原因,谢谢