How to vibrate an iPhone ad infinitum How to vibrate an iPhone ad infinitum objective-c objective-c

How to vibrate an iPhone ad infinitum


You may want to use the code from "How do you make the iPhone vibrate for arbitrary durations?":

extern void * _CTServerConnectionCreate( CFAllocatorRef, int (*)(void *, CFStringRef, CFDictionaryRef, void *), int *);extern int _CTServerConnectionSetVibratorState(int *, void *, int, int, float, float, float);// Initializeconnection = _CTServerConnectionCreate(kCFAllocatorDefault, &vibratecallback, &x);// Start Vibration_CTServerConnectionSetVibratorState(&x, connection, 3, intensity, 0, 0, 0);// End Vibration_CTServerConnectionSetVibratorState(&x, connection, 0, 0, 0, 0, 0);

I bet this will make it quite difficult for your application to get approved for AppStore! Check out the Unofficial App Store Rejection Criteria.


I disagree iOS 5 has implemented Custom Vibrations mode. So in some cases variable vibration is acceptable. The only thing is unknown what library deals with that (pretty sure not CoreTelephony.framework) and if it is open for developers.


Don't do this. Besides the fact it could get you rejected, it's simply bad form.