Sharing and Printing is not Work in iOS


#1

I am working on app in where i implemented the Sharing and Printing the Html format data. It is working fine in Android but not work in iOS. In iOS it work very strange, It work when i come from background to foreground on app.
Please suggest me where I am wrong. I stuck on this issue from a long moment.

//For Sharing

this.socialSharing.share("",""+this.record.orderNo+" Sale Order",folderpath+"/"+filename,null).then(() => {
   
    }).catch((error) => {
      // Error!
      alert(error);
    });

// For Print

this.platform.ready().then(success =>{
   
  this.printer.print(printData).then(function()
  {
   
  },
  function()
  {
     alert("Error while printing!");
  });

  },
  error=>{
    alert('Platform Not Ready'+error);
  });