Closed FrostyMint closed 3 years ago
You have to append the file name in the last of the URL or to pass the options
I need you to use the direct Cordova plugin, not ionic native because it has issues until they process my last pull request
be sure you are using the latest version of the plugin 0.2.7
use this code
(<any>window).PreviewAnyFile.previewPath(
win => console.log("open status",win),
error => console.error("open failed", error),
this.jpgUrl,{name : "Andy.jpg"}
);
@mostafa-mansour1 Alright, Thanks for the suggestion!
Hi I having trouble to preview file such as image and pdf using url from azure storage explorer that also contain with the SaS token, before that i did try using inAppBrowser which i able to view those file without problem. I did aso tested out using sample image from google which able to view the image using this previewAnyFile. Below attached image are the output i get after i launch the function Thanks.