2016-04-02 11 views
0

Wie können wir pushnotification ohne Ton mit pushwoosh PHP APIPushwoosh Benachrichtigung ohne Ton

unten senden ist mein Code

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)), 
      ) 
     ) 
    ) 
); 

Dank

Thanigaivelan

Antwort

1

Um einen Push zu senden, ohne ein Sound auf iOS-Geräten sollte man einfach keinen Ton in 'ios_sound' angeben.

Für Android verwenden Sie einfach 'android_sound' ohne Wert: 'android_sound'=>''.

Andernfalls können Sie eine geräuschlose Datei in Ihr App-Paket einfügen und sie bei Bedarf abspielen.

Verwandte Themen