iOS推送通知自定义声音重复?

时间:2016-05-19 08:55:41

标签: ios iphone push-notification apple-push-notifications

我正在使用推送通知。我已经为推送通知实现了自定义声音。如果推送通知自定义声音只有5秒长,那么我可以重复它直到最大声音限制(30秒)到达吗?

例如:
我可以反复播放6次通知声音吗?

JSON有效负载是:

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

1 个答案:

答案 0 :(得分:2)

你无法直接重复声音 您必须发送另一个通知以再次触发声音。

看看这个与你的问题非常相似的问题:
apple push notification with sound buzzing at regular interval