Posts

Post not yet marked as solved
2 Replies
2.4k Views
I have push service extension which would be triggered when app receive remote notificaiton.I want it to vibrate 8 times in case our users, nurses, missed the alerts that indicate their patients have some ermergent issues.But when I do things like below for testing, it just only vibrate with sound once as ordinary notifiaiton.func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) { .... AudioServicesPlayAlertSound(SystemSoundID(kSystemSoundID_Vibrate)) sleep(1) AudioServicesPlayAlertSound(SystemSoundID(kSystemSoundID_Vibrate)) sleep(1) ....}Is there any way to make remote notificaiton vibrate more than once? Or can I play the sound resouce default in iphone that can trigger vibration many times? My main goal is to make the notificaiton more noticealbe for nurses. Since if they missed it, bad things would happen on patients.Thanks in advance!
Posted
by yabee.
Last updated
.