[英]How to change push notification sound?
我正在使用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'
))
));
此示例来自您提供的链接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.