[英]iOS Push Notification custom sound repeat?
I am working with push notifications. 我正在使用推送通知。 I have implemented custom sound for push notifications. 我已经为推送通知实现了自定义声音。
Is it possible if push notification custom sound is only 5 sec long then can I repeat it till the max sound limit(30 sec) reach ? 如果推送通知自定义声音只有5秒长,那么我可以重复它直到最大声音限制(30秒)到达吗?
For Example: 例如:
Can I play the sound for one notification 6 times repeatedly ? 我可以反复播放6次通知声音吗?
JSON payload is : JSON有效负载是:
array(
'alert' => $message,
'sound' => 'blackberry_3.mp3'
);
You can't directly make the sound repeating. 你不能直接让声音重复。
You have to send another notification to trigger sound another time. 您必须发送另一个通知以再次触发声音。
Take a look at this question, that is very similar to yours : 看看这个与你的问题非常相似的问题:
apple push notification with sound buzzing at regular interval 苹果推送通知,定期发出嗡嗡声
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.