在多个iOS应用之间共享信息 [英] Sharing info between multiple iOS apps
问题描述
通过合法我的意思是App Store接受的方法。
By "legally" I meant methods which will be accepted to App Store.
我读过这个,但我觉得它可能已经过时了(一个问题,大多数答案都追溯到2008年)
I have read this one, but I feel that it could be out-date (a question and most answers are dated back 2008)
这些提供了最少的信息:
And these provides minimal info:
据我所知,这些方法是
完全合法
1)UIApplication openURL
1) UIApplication openURL
2)钥匙扣如果两个应用程序都是d,则可以使用由同一个团队开发
2) Keychain can be used if both applications are developed by the same team
3)如果两个应用程序都是由同一个团队开发的话,可以使用iCloud
3) iCloud could be used if both application are developed by the same team
灰色区域。
4)使用CFNotificationCenterGetDarwinNotifyCenter,CFNotificationCenterAddObserver,CFNotificationCenterPostNotification的全局通知
4) Global notification using CFNotificationCenterGetDarwinNotifyCenter, CFNotificationCenterAddObserver, CFNotificationCenterPostNotification
5)使用TCP / IP套接字(如果有的话)在后台运行的应用程序)
5) Use TCP/IP sockets (if one of applications run in background)
6)使用Unix套接字(如果其中一个应用程序在后台运行)
6) Use Unix sockets (if one of applications run in background)
7)使用自定义UIPasteBoard
7) Use custom UIPasteBoard
是否有人被拒绝或被接受谁使用过这个?
Did anybody got rejected or accepted who used this?
有谁知道任何其他方法?
- 更新1 -
两个应用程序都将在同一台设备上运行。
Both apps will be running on the same device.
其中一个应用程序可能会在后台运行(VOIP)
There is a chance that one of the apps will be running in the background (VOIP)
应用程序将由不同的团队开发(不会使用相同的证书签名)。
Apps will be developed by different teams (won't be signed with the same certificates).
推荐答案
使用Dropbox等服务怎么样?它被很多应用程序使用,我认为它们提供了丰富的API。
What about using a service like dropbox? It's used by quite a lot of apps, and I think they provide a rich API.
这篇关于在多个iOS应用之间共享信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!