简体   繁体   English

将Apple Watch通知发送至iPhone

[英]Send Apple Watch notification to iPhone

For Objective-C, is it possible to send notification from iPhone to Apple Watch? 对于Objective-C,是否可以从iPhone向Apple Watch发送通知? Is the reverse possible? 反过来可能吗?

If yes, please guide me by some code or link. 如果是,请通过一些代码或链接指导我。

WKInterfaceController has openParentApplication:reply: method that can send some user info to parent app and get a response. WKInterfaceController有openParentApplication:reply:方法,可以将一些用户信息发送到父应用程序并获得响应。 Also you can use darwin notifications to send messages from iPhone to watch and reverse. 您还可以使用darwin通知从iPhone发送消息以观看和反向。 Look at MMWormhole to see some examples of code. 看看MMWormhole看一些代码示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM