I am having trouble opening GPX files in my iOS app. I registered the extension and some files open correctly, that is when I tap on a link to GPX file in Safari, it shows a prompt asking me which application I want to use to open the file. Then I select my application and the file is processed as expected. With some websites in Safari and with all files from email attachments, the prompt and app selection is not displayed and the browser/email app shows contents of the file as text.

I suspect this is problem with the info.plist settings or possibly with the Safari and email apps. If you open XML or GPX files in your ios apps correctly, would you post your CFBundleDocumentTypes and UTExportedTypeDeclarations settings from info.plist?

Any thoughts are welcome. Here is the appropriate section from my info.plist. I tried to add and remove some optional tags, this is the latest, but not most complete.

<key>CFBundleDocumentTypes</key>
<array>
    <dict>
        <key>CFBundleTypeIconFiles</key>
        <array>
            <string>Icon.png</string>
            <string>Icon@2x.png</string>
        </array>
        <key>CFBundleTypeName</key>
        <string>GPS eXchange Format</string>
        <key>CFBundleTypeRole</key>
        <string>Viewer</string>
        <key>LSHandlerRank</key>
        <string>Owner</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>org.elsners.Indicium.gpx</string>
        </array>
    </dict>
</array>
<key>UTExportedTypeDeclarations</key>
<array>
    <dict>
        <key>UTTypeConformsTo</key>
        <array>
            <string>public.xml</string>
        </array>
        <key>UTTypeDescription</key>
        <string>
Edit
Report