ShoutSocial / share_handler

A plugin to facilitate receiving and handling share intents
42 stars 39 forks source link

Feature: Add support for making app an Airdrop Target #7

Closed JoshJuncker closed 2 years ago

JoshJuncker commented 2 years ago

iOS supports receiving AirDrop files. It seems that somehow apps can register to be receiving targets of airdrop files.

This feature would add the app to the AirDrop targets as a receiver, and handle received AirDrop files in a similar fashion to handling shared media.

Some Apple documentation. https://developer.apple.com/library/archive/qa/qa1587/_index.html

JoshJuncker commented 2 years ago

Adding the following to info.plist makes it so the app shows up in the list of apps to AirDrop a pdf file to.


    <array>
        <dict>
            <key>CFBundleTypeName</key>
            <string>pdf</string>
            <key>LSHandlerRank</key>
            <string>Alternate</string>
            <key>LSItemContentTypes</key>
            <array>
                <string>com.adobe.pdf</string>
            </array>
        </dict>
    </array>