最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

ios - NSExtensionActivationRule for Safari - Stack Overflow

programmeradmin1浏览0评论

I have NSExtensionActivationRule in the ShareExtension as below:

SUBQUERY(
    extensionItems,
    $extensionItem,
    SUBQUERY(
        $extensionItem.attachments,
        $attachment,
        ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.plain-text"
    ).@count >= 1
).@count >= 1
OR 
SUBQUERY(
    extensionItems,
    $extensionItem,
    SUBQUERY(
        $extensionItem.attachments,
        $attachment,
        ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.url"
        || ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.content"
        || ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "com.apple.webarchive"
    ).@count == $extensionItem.attachments.@count
).@count >= 1
OR 
SUBQUERY(
    extensionItems,
    $extensionItem,
    SUBQUERY(
        $extensionItem.attachments,
        $attachment,
        ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.image"
        || ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.movie"
    ).@count == $extensionItem.attachments.@count AND $extensionItem.attachments.@count <= 3
).@count == 1

I can see my app from Photo's share option, but I can't see it from Safari's share option. If I select either PDF or Web Archive from share Options, then I can see my app. What am I missing?

发布评论

评论列表(0)

  1. 暂无评论