Skip to content
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

Open
janburck opened this issue May 14, 2022 · 2 comments
Open

Nothing happens on click on getPictures() #252

janburck opened this issue May 14, 2022 · 2 comments

Comments

@janburck
Copy link

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

@xjtx123
Copy link

xjtx123 commented Jun 8, 2022

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",}

@clarklight
Copy link

Did you manage to figure out the reason, i just walked into the same issue...
on the console log it says
Image URI: O
Image URI: K

But nothing is happening....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants