iOS Push Notification custom sound repeat?

不想你离开。 提交于 2020-01-03 15:37:08

问题


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 ?

For Example:
Can I play the sound for one notification 6 times repeatedly ?

JSON payload is :

array(
    'alert' => $message,
    'sound' => 'blackberry_3.mp3'
);

回答1:


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



来源:https://stackoverflow.com/questions/37318405/ios-push-notification-custom-sound-repeat

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!