iPhone and Webapp sync through iCloud ??

穿精又带淫゛_ 提交于 2019-12-03 12:43:18

I have a similar requirement and have wondered about this too.

Unfortunately iCloud data doesn't seem to be accessible to a Web app. And if you found a hack around it, it would still be an unreliable solution as Apple could always make changes down the road that break your Web component, intentionally or not.

Edit: With CloudKit this is no longer true. It comes with a Javascript API for the explicit purpose of providing a web version of your app.

Sorry if I'm misunderstanding the question, but I was looking to add iCloud support to my web app recently and came across the official iCloud JS API. The promo text reads:

Keep your apps connected and up to date across iOS, OS X, and now on the web with CloudKit JS.

[emphasis added]

https://developer.apple.com/icloud/

It is really hard to determine what you mean.... If you are asking if you can implement iCloud in a web app, then I believe that the answer is 'no', since there is only an API for Objective-C for iCloud.

However, you might be able to embed your JS code inside of a native wrapper and write some native code for working with iCloud. However, that may or may not be an option depending on your particular situation.

Edited for spelling.

davef

You could possibly do this, but only if

  • You where running your own server
  • The server was running on the iOS platform
  • You where able to create software in Objective-C for that server

You could then potentially write a server application, that could be used to connect to the iCloud API, then return the calls back to the end user as Json messages that could be consumed, perhaps by some html interface.

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