2
我使用laravel 5和php和推送通知 github链接(https://github.com/davibennun/laravel-push-notification)。 我应该怎么做才能改变推送通知声音?如何更改推送通知声音?
我使用laravel 5和php和推送通知 github链接(https://github.com/davibennun/laravel-push-notification)。 我应该怎么做才能改变推送通知声音?如何更改推送通知声音?
当您准备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'
))
));
本示例来自您提供的链接。
是我试过但没有工作。我存储了声音剪辑并在声场中给出了路径,但没有改变 –