ios中,保存图片到手机相册时报错如下
ERROR: Method 'requestAuthorization:' not defined in Plugin 'PhotoLibrary'
FAILED pluginJSON = ["PhotoLibrary815393554","PhotoLibrary","requestAuthorization",[{"write":true,"read":true}]]
cordova plugin rm cordova-plugin-photo-library
cordova plugin add https://github.com/nilebma/cordova-plugin-photo-library.git
由于github网络问题可以使用以下命令
npm install --save @ionic-native/photo-library
cordova plugin add https://gitee.com/liuzhuo8081/cordova-plugin-photo-library.git
参考网址
ERROR: Method 'requestAuthorization:' not defined in Plugin 'PhotoLibrary' 使用Swift开发Cordova插件遇到的问题