title: Save file to public directory using Cordova FileTransfer
body: <p>I need to download files on my mobile device and make them accessible for other apps (using Android and iOS).</p>
  
  <p>I managed to download a file to the SD card (<em>cordova.file.externalDataDirectory</em>), but this only exists on Android and even then I cannot rely on every device having an SD card.</p>
  
  <p>When I download to the device storage (<em>cordova.file.dataDirectory</em>), the file is private to my app and therefore not accessible for other apps. The file can be opened in the InAppBrowser, but I would prefer to use the respective default app.</p>
  
  <p><strong>Is there a way to get a path to a directory publicly available on all devices?</strong></p>
  
  <p>The paths returned by the solution suggested in <a href="https://stackoverflow.com/a/21375812/3432305">https://stackoverflow.com/a/21375812/3432305</a> are both private on Android...</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I think I should describe my use case so it's clearer what I'm trying to achieve: I want to open files from my <em>in app chat</em> using the respective default app (pdf viewer, image viewer etc.). Because the <a href="https://github.com/pwlin/cordova-plugin-file-opener2" rel="nofollow noreferrer" title="Cordova File Opener plugin"><em>Cordova File Opener plugin</em></a> only accepts files from the local file system, I need to save them first. But they don't necessarily need to be accessible from outside my app afterwards...</p>