forked from wymsee/cordova-imagePicker
-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nothing happens on click on getPictures() #252
Comments
This happened to me too. |
Did you manage to figure out the reason, i just walked into the same issue... But nothing is happening.... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: