[英]How to change push notification sound?
I am using laravel 5 and php and for push notification github link( https://github.com/davibennun/laravel-push-notification ). 我正在使用laravel 5和php以及推送通知github链接( https://github.com/davibennun/laravel-push-notification )。 What should I do to change push notification sound ?
如何更改推送通知声音?
When you prepare your message
to send you have a field sound
. 当您准备要发送的
message
,您会发出现场sound
。 You can edit there to change the 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'
))
));
This example is from the link you provided. 此示例来自您提供的链接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.