Posts

Post not yet marked as solved
1 Replies
935 Views
We can get data through HKObserverQuery and https://developer.apple.com/documentation/healthkit/hkhealthstore/1614175-enablebackgrounddelivery even if app is in background. Can we access healthkit data even when our app is in killed state?
Posted Last updated
.
Post not yet marked as solved
6 Replies
1.7k Views
While working with Xcode 11 and watchOS6 , I am unable to update WKInterfaceController Title text when controller is added inreloadRootPageControllers, self.setTitle() get updated in willActivate() method only. After that when I programmatically update from button press it doesn't update. Though when we slightly slide the page, updated text appear. As not geting any method so slight scroll page so that updated value appear in title to resolve currently. Please also let me know is it bug that title is not updated, as if change is done after willActivate() shows up when page is slightly scroll. Above is working with watchOS5 sdk.
Posted Last updated
.
Post not yet marked as solved
3 Replies
1.3k Views
I using below code on button press in watch app to speak a text.let utterance = AVSpeechUtterance(string: "Hello world") utterance.voice = AVSpeechSynthesisVoice(language: "en-GB") let synthesizer = AVSpeechSynthesizer() synthesizer.speak(utterance)But it crash with below error "Terminating app due to uncaught exception 'NSRangeException', reason: 'Cannot remove an observer <AXSpeechManager 0x800b2c00> for the key path "audioSessionCategory" from <AXSpeechManager 0x800b2c00> because it is not registered as an observer."Above code is working on xcode 11. but due to problem in updating title in didapper in watch when more that one page are in rootpagecontroller I swiched to 11.2 beta . But now it is giving above crash.
Posted Last updated
.