ios - NSExtensionActivationRule for Safari - Stack Overflow

I have NSExtensionActivationRule in the ShareExtension as below:SUBQUERY(extensionItems,$extensionItem

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?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742337992a4425040.html

相关推荐

  • ios - NSExtensionActivationRule for Safari - Stack Overflow

    I have NSExtensionActivationRule in the ShareExtension as below:SUBQUERY(extensionItems,$extensionItem

    11小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信