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?
source to share