2016-04-28 131 views

回答

2

當您準備message發送給您時,您有一個字段sound。您可以在那裏編輯以改變聲音。

$message = PushNotification::Message('Message Text',array(
    'badge' => 1, 
    'sound' => 'example.aiff', // EDIT THIS filename 

    'actionLocKey' => 'Action button title!', 
    'locKey' => 'localized key', 
    'locArgs' => array(
     'localized args', 
     'localized args', 
    ), 
    'launchImage' => 'image.jpg', 

    'custom' => array('custom data' => array(
     'we' => 'want', 'send to app' 
    )) 
)); 

本示例來自您提供的鏈接。

+0

是我試過但沒有工作。我存儲了聲音剪輯並在聲場中給出了路徑,但沒有改變 –