You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the several tutorials and tried to implement an imagepicker. Unfortunately I was not yet successful.
i.e.: https://www.positronx.io/ionic-angular-image-picker-integration-tutorial/
I always ended up with an app where nothing happens on 'getPictures' not even an error message.
config.xml: <plugin name="cordova-plugin-telerik-imagepicker" spec="https://github.com/Telerik-Verified-Plugins/ImagePicker.git"> <variable name="PHOTO_LIBRARY_USAGE_DESCRIPTION" value="your usage message" /> <variable name="ANDROID_SUPPORT_V7_VERSION" value="27.+" /> </plugin>
This happened to me too.
package.json: { "@ionic/angular": "^4.0.0","@ionic-native/core": "^5.36.0","@ionic-native/image-picker": "^5.36.0","cordova-plugin-telerik-imagepicker": "^2.3.6",}
Hi there,
I followed the several tutorials and tried to implement an imagepicker. Unfortunately I was not yet successful.
i.e.: https://www.positronx.io/ionic-angular-image-picker-integration-tutorial/
I always ended up with an app where nothing happens on 'getPictures' not even an error message.
config.xml:
<plugin name="cordova-plugin-telerik-imagepicker" spec="https://github.com/Telerik-Verified-Plugins/ImagePicker.git"> <variable name="PHOTO_LIBRARY_USAGE_DESCRIPTION" value="your usage message" /> <variable name="ANDROID_SUPPORT_V7_VERSION" value="27.+" /> </plugin>
package.json:
"@ionic/angular": "^6.0.0", "@ionic-native/core": "^5.36.0", "@ionic-native/image-picker": "^5.36.0",
in app.module I added the image picker in the provider section.
This is my click action:
this.imagePicker.getPictures(this.options).then((res) => { console.log(res); for (let i = 0; i < res.length; i++) { this.imageObj.push("data:image/jpeg;base64," + res[i]); } }, (error) => { console.log(error); alert(error); });
I am using a real android device with android 11
and an emulator with SDK 30.
Any help is highly appreciated!
Thanks
The text was updated successfully, but these errors were encountered: