View pdf file through https

Hi, this is my first question in this forum. I’am new in ionic, but I’ve managed to build an app that can view pdf,s in mobile browser using InAppBrowser plugin and, ‘_system’);

It worked pretty well when the pdf file was in an http site, the browser opened and view the pdf directly. Right now is in an httpS site and the behaviour has changed the browser opens and download the file, and you have to tap open when it’s finished to view the pdf file. It happens in Android, in IOS is still working as I like.

Do you know why?. Is there any possibility to avoid this behavior?. Can you recommend me another aproach?

it’s awesome how easy is to build an app with this framework. Thanks a lot for that.