[英]Communicate transparently between apps running on the same iPhone
There are a number of similar questions so this one is carefully scoped not to be a duplicate. 有许多类似的问题,所以这个问题的重点不是重复。
Preconditions 前提条件
Goals 目标
So the question is "Can it be done?" 所以问题是“可以做到吗?”
What follows are some notes on "Already tried" - different approaches that have been considered. 以下是关于“已经尝试过”的一些注释 - 已经考虑过的不同方法。
Well understood attack vectors 很好理解攻击向量
Things that probably won't work 可能不起作用的事情
Possible ideas 可能的想法
Apple has carefully avoided exposing this functionality. Apple小心翼翼地避免暴露此功能。 Has anyone figured out a way to do it anyway? 有没有人想出办法呢?
One more idea: start local web server in one apps on iPhone and use it for communications between apps. 还有一个想法:在iPhone上的一个应用程序中启动本地Web服务器,并将其用于应用程序之间的通信。
Here is implementation of such server 这是这种服务器的实现
And here is usage example 这是用法示例
I haven't tried this solution by myself but saw apps that use this idea for communications. 我自己没有尝试过这个解决方案,但看到了使用这个想法进行通信的应用程序。
Also, I believe that Apple intentionally not implement any easy way to communicate between apps. 此外,我认为Apple故意不实施任何简单的应用程序之间的通信方式。 Now you can make you app like it is the only one application on the whole device with little exceptions like memory usage and etc. As soon as here will be some easy way to communicate between apps we will found ourself in much more complicated environment. 现在你可以让你的应用程序就像它是整个设备上唯一的一个应用程序,只有很少的例外,如内存使用等等。一旦这将是一些简单的方法在应用程序之间进行通信,我们将在更复杂的环境中找到自己。 We will need to consider much more limitations, rules and possibilities as programmers. 作为程序员,我们需要考虑更多的限制,规则和可能性。
But I also would like to have some way to communicate between apps, many great ideas can be implemented with this tool. 但是我也想在应用程序之间进行一些沟通,可以使用这个工具实现许多好点子。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.