terikon / cordova-plugin-photo-library

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

Unable to show the images #159

Open sumannits opened 5 years ago

sumannits commented 5 years ago

Hi, I am trying to use this plugin in IOS. But I am getting file path like this : - "cdvphotolibrary://photo?photoId=ADB24867-0CCB-4207-923A-DC9D44233434%2FL0%2F001"

I have tried to put that on img src but it is not showing. Some of the files are returning the file url like this : - filePath: "/var/mobile/Media/DCIM/100APPLE/IMG_0652.JPG"

I am able to show those but not able to show "cdvphotolibrary". Can anybody tell me how can I show this.

rklus16 commented 5 years ago

I'm guessing you're using the ionic wkwebview? If you are, I'm having the same issue as you are. ionic wkwebview has a warning for this.

Note: Core cordova plugins also allow you to reference a file via the cdvfile:// protocol. Unfortunately, we cannot rewrite this path as it is something that gets resolved in native code. We suggest that when ever you reference a file, use the full path for rewrites, not cdvfile://.

I'm still trying to find a workaround.

WhatDidTheFoxSay commented 5 years ago

is there any way to resolve it?

atologistkaushik commented 5 years ago

+1 Same issue

alphagamer7 commented 4 years ago

+1