Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 227
AttilaTheFun Avatar asked Nov 26 '15 08:11

AttilaTheFun


People also ask

How do I enable an extension in iOS?

View and add Safari extensionsGo to Settings > Safari, then tap Extensions. Tap More Extensions to browse extensions from the App Store. When you find one you want, tap the price, or if the app is free, tap Get, then follow the onscreen instructions.

How do I change share options in iOS?

Control-click on any file in the Finder, select Share, and click More. You'll see a list of items that you can add and remove from the Share menu. Tick the items that you want to keep in the menu; untick the items you want to remove. Your changes will save automatically.

What is Share extension in iOS?

Share Extension is an easy way that Apple provides to share contents (images, audio, files, etc.) from one app to another, even made by different developers.


1 Answers

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>
like image 153
ThE uSeFuL Avatar answered Nov 12 '22 05:11

ThE uSeFuL