I'm trying to load this page in a UIWebView:
http://www.usopenofsurfing.com/on-demand/dvr
It works using Flash on a desktop browser, but has a different implementation when it detects iOS. It works just fine on Mobile Safari, but it's not working in the UIWebView.
Any idea why?
I've looked at the reported User Agents between actual Mobile Safari and the UIWebView.
UIWebView: iPad; CPU OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mobile/9B206
Safari: iPad; CPU OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3
The javascript which is switching between the flash and the iOS functionality simply looks for the strings ipad, iphone, or ipod:
var deviceAgent = navigator.userAgent.toLowerCase();
var is_iOS = deviceAgent.match(/(iphone|ipod|ipad)/);
So the User Agent should only come into play when choosing between Flash and iOS and that appears to be done properly.