2016-04-28 101 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

是我试过但没有工作。我存储了声音剪辑并在声场中给出了路径,但没有改变 –