cordova.plugins.photoLibrary.saveImage not working

I am working with ionic version 2.2.1. I want to save image to gallery on android and ios. I found this https://github.com/terikon/cordova-plugin-photo-library library.
I did my implementation according to that. this is my code

cordova.plugins.photoLibrary.saveImage(url, ‘xxx’).subscribe({
next: (libraryItem) => {
this.showError(libraryItem);
},
error: (err: string) => {
if (err.startsWith(‘Permission’)) {

      let permissionsModal = this.modalCtrl.create(PermissionsPage);
      permissionsModal.onDidDismiss(() => {
        // retry
      });
      permissionsModal.present();
    } else { // Real error
      let toast = this.toastCtrl.create({
        message: `getLibrary error: ${err}`,
        duration: 6000,
      });
      toast.present();
    }
  },
  complete: () => {
    this.showError("complete---");
  }
});

but it not give any error message and not download anything. No any crashes.
please help me!!

use:- url + ‘&ext=.jpg’. It should work