Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

stopLoading not working for PDF URL in web view

$
0
0

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?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>