【问题标题】:iOS Share Extension Only Shows in SafariiOS 共享扩展仅在 Safari 中显示
【发布时间】:2015-11-26 08:37:30
【问题描述】:

我正在测试我正在为 iPhone 应用构建的 iOS 共享扩展。共享扩展仅出现在 Safari 的共享表中。它不会出现在像 Alien Blue 这样的任何 3rd 方应用程序中,甚至不会出现在像 News 这样的任何其他 1 方应用程序中。这是因为该应用程序尚未发布吗?还是我的代码有问题?

【问题讨论】:

  • 你的代码是什么?
  • 你能分享你的 plist 吗?看看这个线程:stackoverflow.com/questions/35427579/…。它可能很有用。
  • 它在你的代码中。您不需要 App Store 上的应用程序出现在第三方应用程序中。请分享 plist 文件。
  • 请分享您的 Plist 文件,以便我们了解它为什么不起作用。
  • @AttilaTheFun 你想分享什么?你的NSExtensionActivationRule 是什么样的?

标签: ios ios8-share-extension ios-extensions


【解决方案1】:

我设置了以下 NSExtensionActivationRule。我的扩展出现在 Safari、Firefox 和 Chrome 中。

<key>NSExtensionActivationRule</key>
            <string>SUBQUERY (
                extensionItems,
                $extensionItem,
                SUBQUERY (
                $extensionItem.attachments,
                $attachment,
                (
                ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.url"
                || ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.plain-text"
                )
                ).@count == $extensionItem.attachments.@count
                ).@count == 1</string>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-01-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多