IOS在应用之间共享数据 [英] IOS share data between apps

查看:449
本文介绍了IOS在应用之间共享数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我想在SAME IOS设备上的应用程序之间共享数据/文件。

Hi I want to share data/files between apps on the SAME IOS device.

场景:一个应用程序提取数据(来自设备的服务器/最多1GB),其他应用程序应该可以访问它

The scenario: one app pulls data (from a server / up to 1GB) to the device, and other apps should be able to access it.

我该如何实现?


  • 没有越狱

可能的解决方案:


  • 只是小块:钥匙串,剪贴板,自定义URL(实际上它们有多小/有限)

如果我不去appstore但直接B2B


  • 私有API和其他类似的事情(据我所知,Apple法规不适用于内部App Store)

  • what about private API and other things like this (as far as i am concerned the Apple regulations do NOT apply to an in-house App Store)

任何其他想法?

感谢您的帮助

推荐答案

我无法给出完整的答案,但其中一个选项是iCloud。如果您在应用程序的权限中为每个不同的应用程序设置相同的iCloud容器,则可以从应用程序中读取/修改共享文件。它要求两个应用程序使用相同的团队ID。

I could not give a full answer, but one of the option is the iCloud. If you set the same iCloud containers in your app's entitlements for each different apps, you can read/modified the shared files from your apps.It requires that both applications use the same Team ID.

如果您想授予对团队发布的其他应用程序创建的文档的访问权限,请使用其他字符串来指定这些应用程序的软件包标识符。更多信息这里

"If you want to confer access to documents created by other apps published by your team, use additional strings to specify the bundle identifiers of those apps." More information here.

这是一个苹果友好的解决方案!

And it is an apple-friendly solution!

这篇关于IOS在应用之间共享数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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