【发布时间】:2014-12-17 18:01:41
【问题描述】:
我正在实现一个苹果手表。在我的 Watchkit 扩展中,我使用该方法与“主应用程序”进行通信。
[WKInterfaceController openParentApplication:applicationData reply:^(NSDictionary *replyInfo, NSError *error) {}];
根据苹果documentation,应用可以在后台处理请求。
When you call the openParentApplication:reply: method, iOS launches or
wakes up the parent app in the background and calls the
application:handleWatchKitExtensionRequest:reply:method of its app delegate.
但是我的应用程序总是处于活动状态,即使我在方法中没有代码 handleWatchKitExtensionRequest
如果可能的话,有什么建议吗?
提前致谢
【问题讨论】:
标签: ios watchkit apple-watch