Questions tagged [wkextension]
4 questions
4
votes
2 answers
What is the equivalent of UIApplication.sharedApplication().delegate in WatchKit?
In an iOS application, you can obtain a reference to the shared app delegate by:
Swift:
let delegate = UIApplication.sharedApplication().delegate as! AppDelegate
Objective-C:
AppDelegate *delegate = [[UIApplication sharedApplication] delegate];
In a…

Duncan Babbage
- 19,972
- 4
- 56
- 93
2
votes
1 answer
Start WKExtendedRuntimeSession (WKExtendedRuntimeObject was dealloced while running)
I have a problem when I try to start WKExtendedRuntimeSession
-[WKExtendedRuntimeSession dealloc]:285: WKExtendedRuntimeObject was dealloced while running. Invalidating the session 46EB2DE0-311C-41D0-93BE-46FE744B685A
class SessionCoordinator:…

Krymskyi Maksym
- 21
- 2
2
votes
1 answer
WKExtension state and sendMessage for Live messaging
I'm developing a WatchApp that needs to communicate with the iOS App and I'm using the Watch Connectivity fwk to do that.
Each time the user displays my WatchApp I need to get from the iOS App a new set of data that must be displayed on the…

sebastien
- 2,489
- 5
- 26
- 47
0
votes
1 answer
WKExtension.sharedExtension().openSystemURL() prompting when it shouldn't
I am developing an extension of an iPhone App for Apple Watch (written in Swift running WatchOS2.2, Xcode 7.3, testing on a physical device)
I am running into an issue where I expect no prompt/confirmation on the Apple Watch when calling the tel…

BMac
- 1
- 2