Open associated files types in app

Hi,

 

i am trying to open a file attachment from my email client with my app.

(*.lightj)

 

When I touch on my email attachment and touch on my app icon in that menu the app starts.

 

As I know the application should trigger follow function in the appdelegate:

 

func application(application: UIApplication, openURL Url: URL, sourceApplication: String?, annotation: AnyObject?) -> Bool

 

But that doesn’t happen.

Also when the app is already started.

 

I added this rows into my Info.plist:

 

CFBundleDocumentTypes
    
        
            CFBundleTypeIconFiles
            
            CFBundleTypeName
            LightJ Configuration
            LSItemContentTypes
            
                com.steinigke.Light-J.lightj
            
        
    

  UTExportedTypeDeclarations
      
          
              UTTypeConformsTo
              
                  public.data
              
              UTTypeDescription
              LightJ Setup Configuration File
              UTTypeIdentifier
              com.steinigke.Light-J.lightj
              UTTypeTagSpecification
             
                 public.filename-extension
                lightj
             
       
  

 

 

What is wrong here?

Thank you!

Powered by WPeMatico

About

You may also like...

Comments are closed.