iOS Push Notification custom sound repeat?

2019-06-24 09:09发布

问题:

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