Safari on the iPad is able to detect downloads and give you a warning if it doesn't understand how to handle them. How do I detect downloads in a similar manner for my iPad app?
I've been searching google for hours with no luck 🙁
My app needs to detect downloads that are generated and returned through scripts (php, javascript, etc) and then handle them. When I click a link in my UIWebView that functions in this manner, I get this error:
Error Domain=WebKitErrorDomain Code=102 UserInfo=0x514af70 "Frame load interrupted"
In Safari, I get a warning (via a UIAlert). So, I'm assuming Safari has some way to handle this and KNOWS that it's a download. Ideas?
I've been searching google for hours with no luck 🙁
My app needs to detect downloads that are generated and returned through scripts (php, javascript, etc) and then handle them. When I click a link in my UIWebView that functions in this manner, I get this error:
Error Domain=WebKitErrorDomain Code=102 UserInfo=0x514af70 "Frame load interrupted"
In Safari, I get a warning (via a UIAlert). So, I'm assuming Safari has some way to handle this and KNOWS that it's a download. Ideas?