84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
同一公司间的app,想通过共享内存通信,我的实现思路是这样的:1)app间能否共享文件:调查结果:使用相同证书的app间能够共享文件,比如迅雷2)使用mmap函数进行内存映射:调查结果:ios中可以使用mmap系统调用
将共享的文件分别映射到各个app的物理内存中,按道理讲以上两个步骤就能实现内存共享了,请问我的方案是否可行?
学习是最好的投资!
First you need shared files, but does the sandbox allow you to share files?
Apps can share data through Keychain Sharing.
Keychain Sharing
I have never used shared memory, so I won’t comment.
Regarding file sharing, I have some suggestions:
Files can be shared using App Group
App Group is stored in an independent space outside the sandbox
If there are multiple apps using the same App Group space, the space content will be cleared only when the last one is deleted
Compared with shared memory, shared files should be safer
Finally attached is a comprehensible tutorial on data sharing between Extension and Containing App in iOS 8
Although it is Extension和Containing Appcommunication in the title, it is actually used for communication between APPs.
Extension
Containing App
Wish you good luck
First you need shared files, but does the sandbox allow you to share files?
Apps can share data through
Keychain Sharing
.I have never used shared memory, so I won’t comment.
Regarding file sharing, I have some suggestions:
Files can be shared using App Group
App Group is stored in an independent space outside the sandbox
If there are multiple apps using the same App Group space, the space content will be cleared only when the last one is deleted
Compared with shared memory, shared files should be safer
Finally attached is a comprehensible tutorial on data sharing between Extension and Containing App in iOS 8
Although it is
Extension
和Containing App
communication in the title, it is actually used for communication between APPs.Wish you good luck