cordova-plugin-file-opener2
Advanced tools
Comparing version 2.1.4 to 2.2.0
{ | ||
"name": "cordova-plugin-file-opener2", | ||
"version": "2.1.4", | ||
"version": "2.2.0", | ||
"description": "A File Opener Plugin for Cordova. (The Original Version)", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -54,3 +54,3 @@ # A File Opener Plugin for Cordova (The Original Version) | ||
cordova.plugins.fileOpener2.open( | ||
'/sdcard/Download/gmail.apk', | ||
'/Downloads/gmail.apk', | ||
'application/vnd.android.package-archive' | ||
@@ -64,3 +64,3 @@ ); | ||
cordova.plugins.fileOpener2.open( | ||
'/sdcard/Download/starwars.pdf', // You can also use a Cordova-style file uri: cdvfile://localhost/persistent/Download/starwars.pdf | ||
'/Download/starwars.pdf', // You can also use a Cordova-style file uri: cdvfile://localhost/persistent/Downloads/starwars.pdf | ||
'application/pdf', | ||
@@ -104,3 +104,3 @@ { | ||
cordova.plugins.fileOpener2.showOpenWithDialog( | ||
'/sdcard/Download/starwars.pdf', // You can also use a Cordova-style file uri: cdvfile://localhost/persistent/Download/starwars.pdf | ||
'/Downloads/starwars.pdf', // You can also use a Cordova-style file uri: cdvfile://localhost/persistent/Downloads/starwars.pdf | ||
'application/pdf', | ||
@@ -176,2 +176,8 @@ { | ||
## SD card limitation on Android | ||
It is not always possible to open a file from the SD Card using this plugin on Android. This is because the underlying Android library used [does not support serving files from secondary external storage devices](https://stackoverflow.com/questions/40318116/fileprovider-and-secondary-external-storage). Whether or not your the SD card is treated as a secondary external device depends on your particular phone's set up. | ||
--- | ||
## Notes | ||
@@ -178,0 +184,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33440
191