I am calling the
`[[WCSession defaultSession] updateApplicationContext:message error:error]`
method which is triggered in my
`-(void)session:(WCSession *)session didReceiveApplicationContext:(NSDictionary<NSString *,id> *)applicationContext`
method in ExtensionDelegate
. But from here I want to call a public method in a WKInterfaceController
to update my UI. I don't want to reload the root controllers as this particular controller is not the root controller. Is it possible to call any public method from ExtensionDelegate
. Can I call
-(void)session:(WCSession *)session didReceiveApplicationContext:(NSDictionary<NSString *,id> *)applicationContext
from somewhere within Interface controller instead of ExtensionDelegate
?
You can use
WCSession
'sthis will invoke
WCSessionDelegate
'smethod in delegate class. This can be used from both app and extension for instantaneous message transfer. Read more