Search code examples
ioshtmlcordovalocal-storageapache-cordova

save image file in local storage and retrieve image from file path html cordova apps


Its quite strange that from all the references i try to save and retrieve images from local storage but it does not display image after app is relaunched.

Tried all possible suggestions in the below links.

save-image-in-local-storage-phonegap

Save image in local database

capture-and-store-images

 function successMove(entry) {

        var sr = entry.nativeURL;
    }

After success i tried to save entry.nativeURL,entry.toURL(),entry.fullPath. But all fails. Cant trace where am wrong.

Note: Tested only in IOS simulator, Development using visual studio 2015


Solution

  • I got this solved when i deploy my app in a real device like a ipad. Only on simulator i get this error.