I want to notify nurses with remote notification that some bad thing happen to patients. So I want to vibrate 8 times when the s/he receive notification.
When my app receive remote push notification, it would trigger my notification service extension's
func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
In that func, I call
AudioServicesPlayAlertSound(SystemSoundID(kSystemSoundID_Vibrate))
sleep(1)
AudioServicesPlayAlertSound(SystemSoundID(kSystemSoundID_Vibrate))
But only the default vibration trigged one time.
Is it possible to vibrate many times when receive push notification? Or can I use custom vibration pattern to make it vibration many times? If it's not possible, can you provide some official document that indicate this? It's quite hard to prove one thing is impossible.