[英]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.