没有声音的Pushwoosh通知

时间:2016-04-02 12:39:08

标签: pushwoosh

如何使用pushwoosh php API发送没有声音的推送通知

下面是我的代码

pwCall('createMessage', array(
    'application' => PW_APPLICATION,
    'auth' => PW_AUTH,
    'notifications' => array(
            array(
                'send_date' => 'now',
                'content' => $podcast_title,
                'data' => array('custom' => json_encode($cus_data)),
                'link' => 'https://bnc.lt/castbox',
                'ios_sound' =>'',
                'android_sound' =>'silent.wav',
                'platforms'=>array(3),
                //'devices'=>array('f82759fc4ca672e27bae0a509710167f52e24577db6d4b5da87e51f8b9ab3b47'),             
                //'conditions'=>array(array($tag,"EQ",$filter_name)),
            )
        )
    )
);

由于

Thanigaivelan

1 个答案:

答案 0 :(得分:1)

为了向iOS设备发送没有声音的推送,您不应在'ios_sound'中指定任何声音。

对于Android,只需使用'android_sound'而不使用值'android_sound'=>''

否则,您可以将无声文件放入应用包,并在需要时播放。