Open victoria168 opened 6 years ago
I found this post here: https://github.com/terikon/cordova-plugin-photo-library/issues/41 And after I tried to force use UIWebView, the images finally show up... thank god. But the performance is not really good when performing scrolling.
@victoria168 this issue is same with me. https://forum.ionicframework.com/t/ios-device-can-not-display-image-when-using-photo-library/114197 Is that install UIWebview and it's work?
Hi, I followed the instruction on ionic docs and the one here. Up to now I can retrieve all library item info. But I never succeed in displaying the photos on img tab. Here are my home.ts: `import { Component } from '@angular/core'; import { NavController } from 'ionic-angular';
import { PhotoLibrary } from '@ionic-native/photo-library'; import { Platform } from 'ionic-angular'; import { ChangeDetectorRef } from '@angular/core'; import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
@Component({ selector: 'page-home', templateUrl: 'home.html' }) export class HomePage {
}`
Here is home.html:
I always got empty img box with src=null. If I don't use DomSantinizer, it will show the warning for all photos: WARNING: sanitizing unsafe URL value cdvphotolibrary://thumbnail?photoId=xxx&width=xx&height=xx&quality=0.5 (see http://g.co/ng/security#xss)
My ionic info is: cli packages: (/usr/local/lib/node_modules)
global packages:
local packages:
System:
Anybody please help?? Thanks!!