yunpu
V2EX  ›  iOS

iOS 程序间通信的办法

  •  
  •   yunpu · Jul 21, 2015 · 3550 views
    This topic created in 4129 days ago, the information mentioned may be changed or developed.

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

    大家有什么好办法么?

    5 replies  •  2015-07-22 19:28:17 +08:00
    hackpro
    hackpro
    Jul 22, 2015
    1
    URLScheme?
    em70
    em70
    Jul 22, 2015 via Android
    2
    楼上正解
    cxe2v
    cxe2v
    Jul 22, 2015
    3
    1楼说的正是阿里系采用的方案
    wezzard
    wezzard
    Jul 22, 2015
    4
    There are some limitations on URLScheme use in iOS 9
    expkzb
    expkzb
    Jul 22, 2015
    5
    App Groups are the scheme iOS uses to allow different apps to share data.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   963 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 19:28 · PVG 03:28 · LAX 11:28 · JFK 14:28
    ♥ Do have faith in what you're doing.