问题
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