WCSession and Today Widget

大兔子大兔子 提交于 2019-12-03 10:13:28

If the watch app is running in the foreground, you should be able to send it a message via a Darwin notification. Take a look at MMWormhole.

It seems WCsession only works from the iOS app, not from any iOS extensions (share, today, keyboard, etc.), so for now you'll have to "relay" things via the app if you want to get it to the watch.

You should file an enhancement bug report with Apple explaining why you think it should be possible to use it from extensions too!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!