阅读背景:

在没有iCloud帐户的情况下使用带有CloudKit JS的Android设备

来源:互联网 

While watching WWDC 2015 CloudKit JS, I realized that an android device user might need an iCloud to request data from the CloudKit DB since an apple user needs the iCloud account to be turned on. Is my assumption correct? There is no way to have my app cross platform?

在观看WWDC 2015 CloudKit JS时,我意识到Android设备用户可能需要iCloud才能从CloudKit DB请求数据,因为苹果用户需要打开iCloud帐户。我的假设是否正确?没有办法让我的应用跨平台?

2 个解决方案

#1


4  

There is nothing stopping you from using CloudKit on Android. In fact, the sample code at https://cdn.apple-cloudkit.com/cloudkit-catalog/ clearly states that CloudKit JS is supported on embedded web views, including Chrome (on Android).

没有什么可以阻止您在Android上使用CloudKit。实际上,https://cdn.apple-cloudkit.com/cloudkit-catalog/上的示例代码清楚地表明嵌入式Web视图支持CloudKit JS,包括Chrome(在Android上)。

If you application needs authentication, CloudKit requires an Apple ID. If the user does not already have an Apple ID, the sign-in flow allows the user to sign up for an Apple ID account right there.

如果您的应用程序需要身份验证,CloudKit需要Apple ID。如果用户还没有Apple ID,则登录流程允许用户在那里注册Apple ID帐户。

Another requirement for CloudKit is that you must have an application (iOS or OS X) published in the App Store with equivalent functionality to what you are providing through the web (be it an embedded web view or not).

CloudKit的另一个要求是您必须拥有在App Store中发布的应用程序(iOS或OS X),其功能与您通过Web提供的功能相同(无论是否为嵌入式Web视图)。

#2


2  

For reading public data there is no need to have an iCloud account. But if you need to write something then an account is needed.

对于阅读公共数据,无需拥有iCloud帐户。但如果你需要写一些东西,那么就需要一个帐户。

I haven't tested yet if the login system work from an android device, but from a web browser it works.

我还没有测试登录系统是否可以从Android设备运行,但是从Web浏览器可以运行。


分享到: