Unable to get modification time in ios


#1

In my code i have retrived lastmodified date of video file using file plugin. It is working fine for android but in ios metadata return current time instead of actual modification time. Can any one tell me to achieve this.

this.file.resolveLocalFilesystemUrl(imageData).then((entry) => {
entry.getMetadata(metadata => {
this.fileSize = (metadata.size / 1024) / 1024;
this.creationDate = new Date(metadata.modificationTime);
});
}, (err) => { });