Ionic Image Picker does not work on DevApp

Hi,

I installed the ImagePicker plugin (as described here https://ionicframework.com/docs/native/image-picker/).
But when I want to get images from the app it does not work.
In the console it says:

[20:16:37]  console.warn: Native: tried calling ImagePicker.getPictures, but the ImagePicker plugin is not installed.
[20:16:37]  console.warn: Install the ImagePicker plugin: 'ionic cordova plugin add cordova-plugin-telerik-imagepicker'

‘cordova plugin list’ command output:

com.synconset.imagepicker 2.1.8 "ImagePicker"
cordova-plugin-advanced-http 1.9.0 "Advanced HTTP plugin"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-googlemaps 2.1.2-beta-20171227-2046 "cordova-plugin-googlemaps"
cordova-plugin-ionic-webview 1.1.16 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-whitelist 1.3.1 "Whitelist"
cordova-sqlite-storage 2.1.4 "Cordova sqlite storage plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"

I’ve reinstalled the plugin for several times. Does ImagePicker work with DevApp? What I am doing wrong?

Thanks in advance

hey you got solution to your problem ?? because am getting the same problem …please help me
please ping me on umeshshelke2014@gmail.com

Hey guys, what is your use case with ImagePicker? do you want a user just to choose their file from their device or something else?

I used Camera plugin instead of ImagePicker. You can set source property for the image (camera or library). But now it does not work, because Ionic DevApp has no support for File plugin, and I cannot get the image from filepath. Who can help me?

Hi morphist. My exact question is: https://stackoverflow.com/questions/48157460/image-upload-issue-on-ionic-devapp

Hope you can help me with the solution. Thanks

hey hsnvv and morphist i already installed image picker plugin in my project but when i run ionic serve then in browser and in devapp its says…plugin is not_installed first its says cordova is not available…please help me

Hi. You should use Camera plugin and set the sourceType as PHOTOLIBRARY. I had the same problem with ImagePicker and could not find a solution, so I switched to Camera plugin.
https://devdactic.com/ionic-2-images/

Maybe this can help you

3 Likes

but camera plugin allow me to take 1 iamge only right ? i want to access multiple image from gallery

1 Like

but by using camera it only select 1 image from gallery right ?? can i get your code please

No Camera plugin has functionality to access user’s gallery as well. So I would agree - try use Camera one as it also worked much better for me.

Can you please take a look at my question about devapp and image path?

I asked a few questions there;) need more details in order to try and help

in my app image picker plugin is working but when add another modules like page navigation page code and another plugin it gives me error in config.xml file

cordova build android
cp: copyFileSync: could not write to dest file (code=ENOENT):G:\ion\cam\platforms\android\res\xml\config.xml

Parsing G:\ion\cam\platforms\android\res\xml\config.xml failed
(node:8584) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT: no such file or directory, open ‘G:\ion\cam\platforms\android\res\xml\config.xml’
(node:8584) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

thanks. I’ve replied to your comments on SO :slight_smile: