0

I'm working on an react native ios app where I want to look through the iPhone's downloads folder for .mp3 files that I can play. I've found a library react-native-fs but right now I am only able to see files added to my app and I can't figure out how to search for .mp3 files already on the iPhone. Any advice on libraries to use or code would be appreciated.

Code for my project: https://github.com/Laybium/laybium

letter Q
  • 14,735
  • 33
  • 79
  • 118

1 Answers1

0

In iOS apps have access only to their sandboxes. There's no such a thing as a Downloads folder, because there's no folder all apps may share.

Artem Stepanenko
  • 3,423
  • 6
  • 29
  • 51
  • Is there anyway I can access the sandbox of itunes and play the music files in itunes and play them? – letter Q Oct 26 '16 at 11:03
  • That's impossible. iTunes is not different from the rest of the apps. All of them have access only to their sandboxes. Well, if you create an App Group, you may share data within it, but there's no way to add iTunes into. It's for apps created by the same developer. – Artem Stepanenko Oct 26 '16 at 11:08
  • could you send a link to the app? – Artem Stepanenko Oct 26 '16 at 13:07
  • All file explorers I've found have integrations from the known services/apps (dropbox, google drive, widows office, etc.) to get files from them. They don't talk to file system directly. The exception is images, but you don't need them anyway. – Artem Stepanenko Oct 26 '16 at 13:38
  • okay. The app isn't all the app store yet but all the code is here: https://github.com/Laybium/laybium – letter Q Oct 26 '16 at 16:27