#import <AudioToolbox/AudioToolbox.h> /* for vibrate */
#import "ESTBeaconManager.h"
-(void)beaconManager:(ESTBeaconManager *)manager didDetermineState:(CLRegionState)state forRegion:(ESTBeaconRegion *)region
{
AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);
NSLog(@"This code does run!");
}
I'm using EstimoteSDK 2.4.0. The above delegate gets triggered when an iBeacon is near.
In the above code snippet, the NSLog gets print when the Phone's screen is on and when it's off.
However, the iPhone only vibrates when the iPhone's screen is on and not off.... This is really weird. Does anyone has an answer to this strange behaviour?
Many thanks guys!