简体   繁体   中英

iOS Share Extension Only Shows in Safari

I am testing an iOS share extension I'm building for an iPhone app. The share extension only appears in the share sheet for Safari. It doesn't show up in any 3rd party apps like Alien Blue or even any other 1st party apps like News. Is this because the app has not yet been released? Or is it a problem with my code?

I have the following NSExtensionActivationRule set. My extension appears in Safari, Firefox and 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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM