Hi there I am trying to create a bug-free jquerymobile app across Android Browser, Dolphin, Mobile firefox, Opera Mini, + IOS4,5 (Safari).
I have Safari working well, the thing is I’ve based my conditionals on the IOS version and I am now worrying if that was the right thing to do. Maybe it shuold be based on the Safari version?
I also need to create some conditionals in my code for fixing the Bugs I’ve seen across default Android O.S versions 2.1,2.2,2.3.3,3.0,3.1,3.2,4.0.3.
Android 2.3.3 returns a user agent string of :
Mozilla/5.0 (Linux; U; Android 2.3.3; en-us; HTC Vision Build/FRF91) AppleWebKit/533.1 (KHTML; like Gecko) Version/4.0 Mobile Safari/533.1
Which component is the likely culprit causing the variation in HTML rendering? I.E which should I try run my conditionals off? Is it the AppleWebKit version?
Android browsers are shipped one per operating system version. So for example there is only one Android Browser for the Android 2.3.3 operating system.
That being said I would go for the browser version so you can normalize your conditionals with the other operating systems.
And that being said I would be careful of what you are doing. It sounds like it’s going to be a nightmare to maintain your code. Perhaps you can write code that gracefully degrades without User-Agent sniffing.