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

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

问题描述

我在要下载到iOS联系人列表的Web服务器上获得了数据。是否可以通过编程方式在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?

还是我可以让我的应用程序定期检查我的Web服务器上的更新,而无需用户手动启动它。 (即在后台运行并在重新启动电话后自动启动)

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天全站免登陆