V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
yunpu
V2EX  ›  iOS

iOS 程序间通信的办法

  •  
  •   yunpu · 2015-07-21 23:34:40 +08:00 · 2570 次点击
    这是一个创建于 3225 天前的主题,其中的信息可能已经有所发展或是发生改变。

    大家好,有个需求是这样的,运行在后台的App1收到服务端的消息之后,将消息转发给运行在前台的App2。一直没有找到可行实用的方案。就了解到的情况是可以利用CFMessagePort,不过自iOS7之后,这个API也被禁止了。xpc只有苹果能用,其他开发者不能用...

    大家有什么好办法么?

    5 条回复    2015-07-22 19:28:17 +08:00
    hackpro
        1
    hackpro  
       2015-07-22 00:47:13 +08:00
    URLScheme?
    em70
        2
    em70  
       2015-07-22 01:04:13 +08:00 via Android
    楼上正解
    cxe2v
        3
    cxe2v  
       2015-07-22 08:41:27 +08:00
    1楼说的正是阿里系采用的方案
    wezzard
        4
    wezzard  
       2015-07-22 10:44:45 +08:00
    There are some limitations on URLScheme use in iOS 9
    expkzb
        5
    expkzb  
       2015-07-22 19:28:17 +08:00
    App Groups are the scheme iOS uses to allow different apps to share data.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2719 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 14:06 · PVG 22:06 · LAX 07:06 · JFK 10:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.