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

ERROR: Method 'requestAuthorization:' not defined in Plugin 'PhotoLibrary' #183

Closed Devmobilesutra closed 4 years ago

Devmobilesutra commented 4 years ago

ERROR: Method 'requestAuthorization:' not defined in Plugin 'PhotoLibrary'

FAILED pluginJSON = ["PhotoLibrary815393554","PhotoLibrary","requestAuthorization",[{"write":false,"read":true}]]

It's work fine on iOS 11.2 but it's getting error on iOS 12 and 13.

My download function: download_image(){ this.photoLibrary.requestAuthorization().then(() => { var url="http://www.google.com/images"+this.fname+"/PROCESSED_JPEG/"+this.imgid+".jpg"; var album = 'Images'; this.photoLibrary.saveImage(url , album).then((entry=>{ this.presentToast(this.translate.instant('image Download success')); }),(error) => { // handle error this.presentToast(this.translate.instant('Download Failed')); }); }); }