Create custom sounds and vibrations in iOS?

I am trying to find information on how you can create custom vibrations in iOS.

The vibrations are simple enough when the app is active. But I want to play custom vibration (like double vibration) along with local notification when the app is in the background.

The soundframe only seems to give me reliable handle ids, while UILocalNotification wants to get the soundfile name.

Any news?

+3


source to share


1 answer


Inject the vibration yourself with a timer after you've posted your local notification. See also Custom_ILIOLOCONATIONName only vibrates the phone when alertBody is specified (as opposed to UILocalNotificationDefaultSoundName)?



0


source







All Articles