Telerik-Verified-Plugins / ImagePicker

Cordova Plugin For Multiple Image Selection
MIT License
181 stars 329 forks source link

Nothing happens on click on getPictures() #252

Open janburck opened 2 years ago

janburck commented 2 years ago

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: `

    <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 commented 2 years ago

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 commented 1 year ago

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....