CFBundleDocumentType is not working in myproject-Info.plist file

后端 未结 2 798
南旧
南旧 2020-12-20 16:47

I am trying to build an app in ionic framework.

I am trying to build this functionality like when i click on photo from gallery and hit share A share pan will open

2条回答
  •  遥遥无期
    2020-12-20 17:26

    Several things are missing/wrong :

    • CFBundTypeIconFiles : I'm quite suire you need to specify the icons for your app to appear
    • CFBundleTypeName : You put the name of your application here
    • CFBundleTypeRole : I think you want "Viewer" here
    • LSHandlerRank : I think you want "Alternate" here (not sure you can be something else for a contentype like "public.jpeg")

    This is an example that works to register your application. It's tested and works for all types of data. Work your way down from there to target only public.jpeg :

    CFBundleDocumentTypes
    
        
            CFBundleTypeIconFiles
            
                Icon-22x29.png
                Icon-44x58.png
                Icon-64x64.png
                Icon-320x320.png
            
            CFBundleTypeName
            My App
            CFBundleTypeRole
            Viewer
            LSHandlerRank
            Alternate
            LSItemContentTypes
            
                public.data
            
        
    
    

提交回复
热议问题