admin管理员组

文章数量:1333710

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?

本文标签: iosNSExtensionActivationRule for SafariStack Overflow