1 Reply
      Latest reply on Jul 14, 2019 5:42 PM by MarcMV
      MarcMV Level 1 Level 1 (0 points)

        I have an application that processes certain types of files (like xml, opml, etc.). To make the "Copy to [myApp]" option appear in the Open in menu I've added the following in Info.plist:

         

        <key>CFBundleDocumentTypes</key>
            <array>
                <dict>
                     <key>UTTypeConformsTo</key>
                     <array>
                         <string>public.xml</string>
                     </array>
                     <key>UTTypeDescription</key>
                     <string>OPML</string>
                     <key>UTTypeIconFiles</key>
                     <array/>
                     <key>UTTypeIdentifier</key>
                     <string>org.opml.opml</string>
                     <key>UTTypeTagSpecification</key>
                     <dict>
                         <key>public.filename-extension</key>
                         <array>
                             <string>opml</string>
                         </array>
                     </dict>
                </dict>
                <dict>
                     <key>CFBundleTypeName</key>
                     <string>XML</string>
                     <key>LSHandlerRank</key>
                     <string>Alternate</string>
                     <key>LSItemContentTypes</key>
                     <array>
                         <string>public.xml</string>
                     </array>
                </dict>
            </array>
        

         

        This works like a charm and I'm able to process the files normally.

         

        Now I'm trying to show the same option when clicking the "Open In" option in Safari, the idea is than when you click my app I'll get the URL from Safari. I've tried many options, including adding code in the plist saying the app can open all file types with no luck.

         

         

        Really appreciate your help.

         

        Marc

         

        Reference:

        https://stackoverflow.com/questions/45067210/ios-app-which-handles-urls-is-not-showing-up-in-open-in-menu-eg-in-safari

        https://www.reddit.com/r/iOSProgramming/comments/6mxlgd/app_not_showing_up_in_open_in_menu_eg_in_safari/

        https://stackoverflow.com/questions/9266079/why-is-my-ios-app-not-showing-up-in-other-apps-open-in-dialog

        • Re: Adding "Copy to [myApp]" option in Safari
          MarcMV Level 1 Level 1 (0 points)

          I've tried everything I can think of, I've improved a couple of things on the plist but still no progress.

           

          <key>CFBundleDocumentTypes</key>
              <array>
                  <dict>
                       <key>CFBundleTypeName</key>
                       <string>XML</string>
                       <key>LSHandlerRank</key>
                       <string>Alternate</string>
                       <key>UTTypeConformsTo</key>
                       <array>
                           <string>public.xml</string>
                       </array>
                       <key>UTTypeDescription</key>
                       <string>OPML</string>
                       <key>UTTypeIdentifier</key>
                       <string>org.opml.opml</string>
                       <key>UTTypeTagSpecification</key>
                       <dict>
                           <key>public.filename-extension</key>
                           <array>
                               <string>opml</string>
                           </array>
                      </dict>
                  </dict>
              </array>
          
          

           

          Any ideas appreciated!

           

          Thanks a million in advance!