Cordova Image Picker not working on Ionic View

I’ve installed the plugin wymsee’s https://github.com/wymsee/cordova-imagePicker but it is not working on Ionic View. Android emulator works fine , so does the IOS emulator. .

Anyone else having a similar issue? I am worried that my app may not work properly when uploaded to the App Store.

1 Like

I am facing the same issue. But the app works fine when installed on device directly

@mukgupta agree , it’s some kind of issue with Ionic View. Regards!

use this
that works fine with me
http://ngcordova.com/docs/plugins/imagePicker/

sorry it was same my mistake wait i will show my code for me

 $scope.selImages = function() {
    var options = {
      maximumImagesCount: 10,
      width: 800,
      height: 800,
      quality: 80
    };

    $cordovaImagePicker.getPictures(options)
        .then(function (results) {
          for (var i = 0; i < results.length; i++) {
            console.log('Image URI: ' + results[i]);
            $scope.images.push(results[i]);
          }
          if(!$scope.$$phase) {
            $scope.$apply();
          }
        }, function(error) {
          // error getting photos
        });

  };

  $scope.removeImage = function(image) {
    $scope.images = _.without($scope.images, image);
  };

that works me fine no errors

1 Like

I am currently using ngCordova $imagepicker library and facing the same issue. Any solutions so far ?

Anybody figured this one?

After a lot of googling, I finally came across a list of supported plugins by Ionic View. You can find that list here: http://docs.ionic.io/v1.0/docs/view-usage

As you may notice, that list is pretty short. Also, it does not support the ImagePicker.

There is a GitHub issue where you can request additional plugins, although I don’t see a lot of activity based on the requests. You can find that GitHub issue here: https://github.com/driftyco/ionic-view-issues/issues/15

I also wanted ImagePicker to be supported by Ionic View, but it looks like I should not hold my breath…I requested support anyways…

2 Likes

I didn’t tested it on emulator. It is not good practice to test cordova plugins on emulators.

I have different issue on latest Android 6.0 … I have resolved issue with following plugin

http://plugins.telerik.com/cordova/plugin/imagepicker

I have a problem with ionic Picture pitcher in vercion 6 android does not work when running in the picker button only closes the application

could you please tell me how did you install plugin and execute it in your code

thank in advance

I’m getting the same error on Ionic View (the latest version for all). However it’s work well on iOS simulator, I didn’t test on Android device since I don’t have one.

I’m using the plugin http://ionicframework.com/docs/native/image-picker/ with the example code.

And render at html with

<img *ngFor="let of listImage" src="{{tweet}}" class="tweet-img" [hidden]="listImage === null">

Cn you send me yourworking code??