We are using the Cordova file plugin to save images to device image gallery . Works fine on Android but can't save an image to the iOS photo gallery using this tutorial . We have used the following paths but no luck so far.
folderpath = window.cordova.file.applicationStorageDirectory + "Library/";
folderpath = window.cordova.file.documentsDirectory;
folderpath = window.cordova.file.syncedDataDirectory;
folderpath = window.cordova.file.dataDirectory;
please advice. Thanks
https://www.npmjs.com/package/cordova-plugin-save-image
You should use this plugin
window.cordova.plugins.imagesaver.saveImageToGallery(nativePathToJpegImage, function(success){}, function(error){});
nativePathToJpegImage is folderpath.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.