iPhone:需要 SYNC 联系人建议

发布于 2024-08-16 12:03:12 字数 269 浏览 3 评论 0原文

我想创建一个应用程序,将我的 iPhone 联系人同步到我的服务器,反之亦然。 我在 google 上读到一篇文章在手机上安装 Google Sync 。我想要这种类型的功能,无需用户交互即可直接更新联系人(但是需要一次设置)。

任何人都知道谷歌同步是如何工作的。 请告诉我如何完成这项任务。非常感谢任何建议和链接

i want to create a application which sync my iPhone contacts to my server and vice-versa.
i read a article on google Get Google Sync on your phone . i want to this type of feature which directly update the contact without user interaction (however one time setting is desired).

any body have idea how the google sync work .
Please advice me that how can i achieve this task. any suggestion and link is greatly appreciated

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

狼性发作 2024-08-23 12:03:12

我认为区分你的问题中两种重叠的方法很重要。

首先,Google Sync 本质上是一种使用 Microsoft Exchange 协议并在 iPhone 上设置邮件/联系人/日历配置文件的方法。 iPhone OS 支持此功能,而不是 App Store 中的 iPhone 应用程序。 Google Sync 通过这些已知协议公开数据(邮件、联系人、日历),从而利用了手机的这一基本功能。如果您想以这种方式向用户公开数据,请设置 Microsoft Exchange 服务器并在 serverfault 上提问。

其次,有iPhone应用程序。目前不允许在应用程序商店中销售的 iPhone 应用程序在后台运行。这意味着您无法模拟 iTunes 或 Mail 等功能,在浏览网页时播放音乐,或者在玩 Mini Squadron 游戏时检查邮件。如果您需要此后台功能,请向 Apple 提交错误/增强功能。。但是,您可以与 iPhone 联系人(地址簿)进行交互 通过 API。。当然,您也可以“重新发明轮子”并通过互联网公开数据,并从自定义 iPhone 应用程序使用该数据,但需要注意的是,用户需要主动启动您的应用程序才能获取该数据并且它不会与内置的 iPhone 日历、地址簿或邮件应用程序集成。一些很好的例子是一些内置消息系统的音乐社区应用程序。想必这一切都是通过网络服务完成的。

编辑:还值得一提的是,如果您选择“iPhone应用程序”路线,您至少应该考虑推送通知适合您,如果适合,您将如何处理它。

I think it's important to separate the two overlapping approaches in your question.

Firstly, Google Sync is essentially a way to use Microsoft Exchange protocols and to setup a Mail / Contact / Calendar profile on an iPhone. The iPhone OS supports this feature, not an iPhone App in the App Store. Google Sync leverages this fundamental capability of the phone by exposing the data (mail, contacts, calendars) via these known protocols. If you want to expose data in this way to your users, setup a Microsoft Exchange server and ask questions on serverfault.

Secondly, there are iPhone apps. iPhone apps sold in the app store are not currently allowed to run in the background. This means you can't emulate functionality like iTunes or Mail where your music plays while you are browsing the web, or mail checking is done while you are playing a game of Mini Squadron. If you want this backgrounding capability, file a bug/enhancement with Apple.. However, you can interact with iPhone contacts (Address Book) via the API.. You can also of course "re-invent the wheel" and expose the data however you like via the internet, and consume that data from a custom iPhone App with the one caveat that users would need to actively launch your application to get to this data and it would not be integrated with the built-in iPhone Calendar, Address Book or Mail applications. Some good examples of that are some of the music community apps that have messaging systems built into them. Presumably that is all being done with web services.

EDIT: It is also worth mentioning that should you go the "iPhone App" route, you should at least consider if push notifications are right for you, and if so how you will handle it.

悲念泪 2024-08-23 12:03:12

您看过API-文档吗?

http://developer.apple。 com/iphone/library/documentation/ContactData/Conceptual/AddressBookProgrammingGuideforiPhone/100-Introduction/Introduction.html

接下来,我使用一个名为 Funambol 的应用程序 - 它是一个sync4j 服务器/客户端。他们有一个开源应用程序来同步 iPhone 上的联系人。来源位于其存储库中的某个位置,信息如下: http://forge.ow2.org/scm /?group_id=96

正如 slf 告诉您的那样,您的应用程序必须在前台运行。这可能会限制你。

祝你好运&此致,
弗洛里安

Have you seen the API-Docs?

http://developer.apple.com/iphone/library/documentation/ContactData/Conceptual/AddressBookProgrammingGuideforiPhone/100-Introduction/Introduction.html

Next there is an application I use called Funambol - it is a sync4j Server/Client. They have an open source application to sync contacts on the iPhone. Source is somewhere in their repository, informations here: http://forge.ow2.org/scm/?group_id=96

As slf told you your application must run in foreground. This may limit you.

Good luck & best regards,
Florian

万人眼中万个我 2024-08-23 12:03:12

3.0 SDK 将允许您的应用程序读取手机上的联系人数据。
Web 服务将允许您将该数据发布到您的服务器并接收更新。
您可能还想使用 coredata 存储所有联系人数据的哈希值,以便您可以知道哪些内容是新的/更新的,然后将该数据发送到您的服务器。

The 3.0 SDK will allow your application to read contact data on the phone.
Web services will allow you to publish that data to your server, and receive updates.
You may also want to use coredata to store a hash of all contact data so you can tell what is new / updated and just send that data to your server.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文