在 iOS 上创建等效的 Android 同步适配器 [英] Create equivalent of Androids sync adapter on iOS

查看:27
本文介绍了在 iOS 上创建等效的 Android 同步适配器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网络服务器上获取了数据,我想将其下载到 iOS 联系人列表中.是否可以在 iOS 上以编程方式创建一个帐户,该帐户类似于 android同步适配器"并且不是默认帐户或 LDAP/CardDAV 帐户之一?

I got data on a webserver which I want to download to an iOS contact list. Is it possible to programatically create an account on iOS that works like the android "sync adapter" and is not one of the default account or an LDAP/CardDAV account?

或者我可以让我的应用程序定期检查我的网络服务器上的更新,而无需用户手动启动它.(即后台运行,手机重启时自动启动)

Or can I have my application to periodically chech for updates on my webserver without the user having to manually start it. (i.e. running in the background and starting up automatically when the phone is restarted)

推荐答案

不,两者都有.您能做的最好的事情是创建一个配置文件用户可以下载以添加 LDAP/CardDAV 帐户,但您需要运行实际的 LDAP 或 CardDAV 服务器才能在用户不打开您的应用程序的情况下进行任何类型的自动联系人同步.iOS 上的地址簿框架只允许您在设备上的现有帐户中添加和修改联系人,多任务规则 仅允许您的应用在提供 VoIP 服务的情况下在后台启动.

No, to both. The best you can do is create a configuration profile that the user can download to add an LDAP/CardDAV account—but you will need to run an actual LDAP or CardDAV server to have any kind of automatic contact syncing happen without the user opening your app. The Address Book framework on iOS only allows you to add and modify contacts within the existing accounts on the device, and the multitasking rules only allow your app to start in the background if it provides a VoIP service.

这篇关于在 iOS 上创建等效的 Android 同步适配器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆