0

如果您在 PushApps 中设置了标签,当使用远程 API (php) createNotification 时,您如何告诉它只向具有特定设置标签的设备发送通知?

$data = array(
              'SecretToken' => $SecretToken, 
              'Message' => $message, 
              'Platforms' => array(1, 2), ## Optional, platforms to send to, if empty will send to all configured platforms, don't use this option if 'Devices' or 'DeviceIds' are being used
              'Devices' => array(array(
                                       'PushToken' => $pushToken, 
                                       'DeviceType' => $deviceType
                                       )) 
              );

谢谢你。

4

1 回答 1

1

他们的 API 现在通过在请求中添加SegmentId来支持这一点: https ://wiki.pushapps.mobi/display/PUSHAPPS/API+Reference#APIReference-CreateNotification

于 2014-12-13T15:00:45.790 回答