What (else) do I have to do to open my iOS app by tapping attachment?


For my iOS 16.x app, I outline a customized UTI following in my Information.plist.

It is not performing as anticipated. For instance, I faucet file hyperlinks or attachments which have the brand new extension, however I’m merely proven a view of the (easy JSON) contents.

Unusually, once I drag a file that has that .customized extension as an attachment right into a Messages thread on the Mac, it acknowledges it as a kind of App Identify Doc (the Mac appears to correctly affiliate it with my iOS app that I am constructing in XCode on that Mac and operating on an actual iPhone).

However irrespective of the place I click on or faucet and maintain, in Information app, in Messages, in E-Mail, on http://iCloud.com shopping iCloud drive, it would not present me an choice to open my app it simply shows the contents (easy JSON).

I’ve applied the open url delegate technique in AppDelegate.swift and the corresponding one in SceneDelegate.swift.

    <array>
        <dict>
            <key>UTTypeIdentifier</key>
            <string>llc.firm.App-Identify-document</string>
            <key>UTTypeConformsTo</key>
            <array>
                <string>public.json</string>
            </array>
            <key>UTTypeDescription</key>
            <string>App Identify Doc</string>
            <key>UTTypeTagSpecification</key>
            <dict>
                <key>public.filename-extension</key>
                <array>
                    <string>customized</string>
                </array>
            </dict>
        </dict>
    </array>
    <key>CFBundleDocumentTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeName</key>
            <string>App Identify Doc</string>
            <key>LSItemContentTypes</key>
            <array>
                <string>llc.firm.App-Identify-document</string>
            </array>
            <key>LSHandlerRank</key>
            <string>Proprietor</string>
            <key>CFBundleTypeRole</key>
            <string>Viewer</string>
        </dict>
    </array>

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles