We have a web view in our application and we are checking the URL pattern in before load listener. If the URL is of PDF then we don't load in web view.
var pdfindex = linkurl.toLowerCase().indexOf('.pdf');
if(pdfindex!=-1) {
mywebview.stopLoading();
}
On IOS the above code works only if the PDF is not downloaded on the device. If it is inside the cache then the stopLoading() method don't work and PDF loads in web view.
Anyone has idea about this issue?