能否绕开iOS或android端通过RegistrationId给单个用户推送

2334520744
2017-10-10 04:22 1.7k 0
$client = new JPushClient($app_key, $master_secret);
$client->push()
        ->setPlatform('all')
        ->addRegistrationId($registrationId)
        ->setNotificationAlert('Hello, JPush')
        ->send();

向大神们求教我现在做的项目是iOS/android将h5页面打包成app,现在想给app客户端(手机)的特定某个用户推送消息,在php端sdk里面看到了addRegistrationId()函数,根据文档,这个应该可以给特定设备标识的某个用户推送。
但现在的问题是,我能否能否绕开iOS或android端,以php代码直接获取到用户的RegistrationId?然后通过上述方法推送消息到指定RegistrationId的用户
还望指教

1个回答

热门排序
  • 1、registrationID是设备标识,,推送是推送给设备的,registrationID只能在客户端集成注册成功后在 客户端获取到 2、https://community.jiguang.cn/question/50 3、不明白你说的 展示全部