Pages

Thursday, August 8, 2013

iOS 6 File Type Association Issues

I've run into a problem that appears to be restricted just to iOS 6 devices -- iOS 5 seems to handle this situation well.

 

I'm building an application that exports JSON-formatted files with a custom extension via email, and should also be able to open the file attachment from within mobile mail using the "Open with" dialog. Basically just a way to send your app's settings to other users of the app via email. These are small files as well -- less than 200KB.

 

The problem I've run into is that even though my application name appears in the list of available applications to open the attachment, iOS 6 devices fail to open my application. In the device logs, the following gets reported:

 

     LaunchServices: Invalid LSOpenOperation request - No applications found to open document

 

I've been looking for anything online about this kind of issue, but haven't found any reference to that console output. I'm also positive that I've set up the Document Type and Exported UTI items correctly -- again this all works fine in iOS 5. I've included the values defined for the Document Type and UTI below:

 

Document Type

============

CFBundleDocumentTypes

        

                

                         CFBuldlerTypeRole

                         Editor

                         CFBundleTypeExtensions

                        

                                 exportedModel

                        

                         CFBundleTypeIconFiles

                        

                                 icon

                        

                         CFBundleTypeName

                         Exported Model

                         LSHandlerRank

                         Owner

                         LSItemContentTypes

                        

                                 com.company.applicationName.exportedModel

                        

                

 

 

Exported UTI

==========

UTExportedTypeDeclarations

        

   

      UTTypeConformsTo

     

        public.text

     

      UTTypeDescription

      Exported Model

      UTTypeIdentifier

      com.company.applicationName.exportedModel

      UTTypeTagSpecification

     

        public.filename-extension

        exportedModel

        public.mime-type

        application/octet-stream

     

                

 

 

Has anyone else seen this kind of behavior in iOS 6? Could there be a cache of file type associations that is messing the "Open with" operation up?


View the original article here

0 comments:

Post a Comment