I have native path like file:///var/mobile/Media/DCIM/100APPLE/IMG_0044.PNG. Now when I trying to remove that file using ionic native file(https://ionicframework.com/docs/native/file/) removeFile() then I am not able to remove. Even if I only resolving it by file.resolveLocalFilesystemUrl(pathofthatfile) i am getting error NOT_FOUND_ERROR.When I use file.resolveDirectoryUrl(“file:///var/mobile/Media/DCIM/100APPLE”) then this method resolve the directory and returns DirectoryEntry.
Another thing that is to notice is that when I share file using above same url then I able to share it. To share I am using ionic native Social Sharing plugin(https://ionicframework.com/docs/native/social-sharing/).
Can anyone know what is the problem???
Can I not delete files from iPhone using my ionic app??? Or Problem in any of plugins.
This is the my first question on forum, so if any mistakes in question please let me know.