cordova plugin add cordova-wtto00-filepath
- Android
Once installed the plugin defines the window.FilePath
object. To resolve a
file path:
window.FilePath.resolveNativePath("content://...", successCallback, errorCallback);
Returns the file://
file path.
Returns the following object:
{ code: <integer>, message: <string> }
Possible error codes are:
-1
- describes an invalid action0
-file://
path could not be resolved1
- the native path links to a cloud file (e.g: from Google Drive app)