UILocalNotification custom soundName only vibrates the phone when alertBody is specified (as opposed to UILocalNotificationDefaultSoundName)?

I have a VoIP application that uses UILocalNotification to notify the user of an incoming call when the application is in the background. When the notification is presented, I would like it to play a sound and vibrate the phone - multiple times (and without repeating the same message). I was able to do this using a series of notifications - the first would immediately present a message and play a sound (the phone vibrates too) - after the notifications were scheduled for 3 seconds; they do not have alertBody and alertAction, but have the same sound name as in the first alert. HERE IS MY PROBLEM .. If a sound name other than UILocalNotificationDefaultSoundName is specified, the phone will vibrate only for the first notification (the sound will play every time though). However,if the default soundName is used then the phone will vibrate on every notification? Is there any other way to do this?

0


source to share


2 answers


Found another way: display a local notification and then start repeating the vibration through a timer.



+1


source


Interesting. Sounds like a mistake. File with Apple and you can get them to take care of it.



0


source







All Articles