Getting server data for the Apple Watch

亡梦爱人 提交于 2019-12-19 07:41:28

问题


I am wondering how to go about designing a watchOS app that depends on getting the latest feed from a server. Would you need to use application context and just have the iPhone push it over in the background using the WatchConnectivity framework or would you use NSURLSession on the Apple Watch itself? Keep in mind this is for watchOS 2.


回答1:


You can use NSURLSession to handle your request. So your request would be native on your watchn. But note that your watch is there to show simple Content to the user.



来源:https://stackoverflow.com/questions/31465130/getting-server-data-for-the-apple-watch

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