I am developing apple watch application. my application working like every second it's notify sound and vibrate on my watch app.
Otherwise How can i stop watch from going to lock screen after 15 second?
My code is as follows.
- (void)willActivate {
[super willActivate];
soundAlert = [NSTimer scheduledTimerWithTimeInterval:1.2f target:self selector:@selector(SoundAlertNotification) userInfo:nil repeats:YES];
}
- (void)SoundAlertNotification
{
if (!isRechableFlag) {
[self playsound];
}
}
#pragma mark - Play Sound Methods -
- (void) playsound
{
[[WKInterfaceDevice currentDevice] playHaptic:WKHapticTypeRetry];
}
But when watch is going to lockscreen around 15 secode my sound method stop to call rather then it's work well.
What am I doing wrong?