PHP JPUSH 设置RegistrationID实现精确推送通知 怎么搞

标签: #<Tag:0x00007f6580f9a960>

$client = new JPush\Client($app_key, $master_secret);
$result = $client->push()
->setPlatform(‘all’)
->addAllAudience()
//->addRegistrationId($redId)
->setNotificationAlert($content)
->send();

addRegistrationId($redId);这样赋RegistrationID报错

参考