Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Cannot removing file in ios using native path in native file plugin

$
0
0

@bhardakishan wrote:

Hello everyone,

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.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>