terikon / cordova-plugin-photo-library

Maintainer needed. Please contact if you're using this library in your project
MIT License
149 stars 297 forks source link

photo-library also returns Photos deleted with File plugin #100

Open bhavincb opened 6 years ago

bhavincb commented 6 years ago

Current behavior:

when we delete image using ionic-native/file plugin and fetch device images using PhotoLibrary plugin, it also includes entry of deleted image using File plugin.

Expected behavior:

after deleting image Using File plugin, it should not be included in Photolibrary results

Steps to reproduce:

fetch images using photoLibrary.getLibrary() delete any image using file.removeFile() again fetch images using photoLibrary.getLibrary() both results in step 1 and 3 will be same.

rcrodrigues commented 6 years ago

@bhavincb have you managed to create a workaround for this?

bhavincb commented 6 years ago

@rcrodrigues you have to manually call for media store refresh after removing the file.