ios - 如何让两个AIR IOS应用程序进行通信?

标签 ios air

一种可能的解决方案是使用自定义 URL:

我关注following tutorial然后进一步探索 IOS 中两个 AIR 应用程序的通信。 - 第一个应用程序使用第一步中描述的自定义 URI“fbMY_APP_ID”,Safari 可以调用它。 - 第二个应用使用带有自定义 URI 的 URLRequest 与第一个应用通信。

我收到错误:“SecurityError:错误 #2193:违反安全沙箱:navigateToURL:app:/secondApp.swf 无法访问 tfbMY_APP_ID://test”。

  1. 我在这种方法中遗漏了什么吗?有什么办法可以解决这个问题?
  2. 除了使用 Custom URL 还有其他方法吗?

最佳答案

根据 Adob​​e AIR 强制实现的安全沙箱,navigateURL 仅限于 http:、https:、sms:、tel:、mailto:、file:、app:、app-storage:、vipaccess 等知名协议(protocol):和 connectpro:.您可以通过 here 找到更多信息。和 here .

一种解决方法是使用 html 页面作为中间层,页面将在其中中继调用。

关于ios - 如何让两个AIR IOS应用程序进行通信?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10226036/

相关文章:

ios - 在 iPhone 上调试以不同于模拟器的方式解析 JSON 值

ios - xcode 自定义叠加捕获

ios - 为什么我只能在 TableView Swift 中展示我的第一部分?

flash - 使用loadCompressedDataFromByteArray加载声音并稍后播放?

android - 通过 Adob​​e Air 应用程序启动 Android 应用程序

actionscript-3 - Adobe AIR : Worker can't load file

ios - 不同时间数据库

android - 在不将设备放平的情况下使用 Android 加速度计

android - 适用于 Android 的 AIR 3 native 扩展 - 我可以/如何包含第 3 方库吗?

ios - collectionView :didSelectItemAtIndexPath does not get called on tap