Image Picker is broken

I followed this docs:

I added this plugin to my ionic 2 project:
$ ionic plugin add cordova-plugin-image-picker

I am using this code:

imagePicker() {
    ImagePicker.getPictures({}).then((results) => {
        for (var i = 0; i < results.length; i++) {
            alert('Image URI: ' + results[i]);
    }, (err) => { alert(err) });

In my template this:
<button (click)="imagePicker()">Image picker</button>

When I tap in the button in my phone(android 6.0.1) my app close.

What is wrong?

it’s probably a permission problem for marshmallow.

using will probably solve it