1.0.4 • Published 7 years ago

cordova-externalstoragepath-plugin v1.0.4

Weekly downloads
12
License
-
Repository
-
Last release
7 years ago

Cordova External Storage Path Plugin

Build Status

This plugin makes it possible to retrieve the path to your sdcard. On Android 6+ the path of the sdcard is different for every sdcard, because the path is like this:/storage/XXXX-XXXX where XXXX-XXXX is the volume id of the sdcard. Cordova does not provide functionality to retrieve a path to your sdcard, which is why I wrote this plugin.

Installing

cordova plugin add cordova-externalstoragepath-plugin

Usage

  CordovaExternalStoragePlugin.getExternalStorageDirs(function(sdCardDirs){
      // sdCardDirs contains an array of possible sdCard locations ["XXXX-XXXX"].
      console.log(sdCardDirs);
  });