3 Replies
      Latest reply on Jan 31, 2019 6:19 PM by KMT
      Banng Level 1 Level 1 (0 points)

        We have flash drive (USB) with photos inside it.

        We have connected flash drive to iPad via lightning cable (USB C). This opens Photos app, from where we can import photos.

        After this, we need to press Home key and launch our app developed in Swift, this loads the most recent photo from gallary.

        We want to avoid above step, i.e. Can we add customized button on Photos app to transit to our application in Swift/Objective-C.

        Or

        Once flash drive connected to iPad then our app should get launched and show latest image from drive?

        • Re: iPad - import photo from flash drive to our app
          KMT Level 9 Level 9 (14,345 points)

          Not possible for your app to read directly.

           

          See: https://forums.developer.apple.com/thread/76036

            • Re: iPad - import photo from flash drive to our app
              Banng Level 1 Level 1 (0 points)

              Thank you for sharing details.

              Understood that we can't directly access drive in iOS.

               

              Could you please tell us what will be the best way to provide seamless transition to our app when flash drive connected to give better user experience ?

              e.g. Import Photo's from drive via Photo's app, this provides pop up similar like "Would you like to delete the imported photo from attached camera?" with "Delete" and "keep" button.

              We would like to check below things here

              1) Once import complete it should automatically transit to our app [Without  pressing on Home key and manually transiting to our app]

              Or

              Please suggest better way to transit to our app.

               

              2) Customize this popup to have "Delete All"  functionality. [As you mentioned, it looks impossible]

               

              Thanks

                • Re: iPad - import photo from flash drive to our app
                  KMT Level 9 Level 9 (14,345 points)

                  Not possible for your app to inject itself into nor affect the Photos/card connect/asset import process for any purpose.

                   

                  Your users must manually navigate to/select photo and video assets managed by the Photos app*, post import.

                   

                  If this is a feature you'd like to see going forward, feel free to submit an enhancement request via the bug reporter, linked below, adding your report # to your thread for reference, thanks and good luck.

                   

                  * PhotoKit API