Code conditional on iOS

43 views
Skip to first unread message

Kyle Baley

unread,
Dec 5, 2012, 8:17:58 PM12/5/12
to google-we...@googlegroups.com
Is there a non-JSNI way of detecting whether a user is on iOS, specifically iOS 6. We had a bug introduced in our app that happens only on iOS6. It has to do with how two different panels are inserted into the DOM and whether they accept mouse down events. The method we have now works everywhere except on iOS 6 (it works on earlier versions). We have a workaround that works in iOS 6 but it has other minor quirks in the other browsers so we want to implement it only in iOS.

For now, we're using a JSNI method to retrieve the userAgent client-side. I'd like to use Deferred Binding but as far as I know, I can't use it specifically for iOS, just gecko1_8, safari, etc.

Thomas Broyer

unread,
Dec 5, 2012, 9:05:06 PM12/5/12
to google-we...@googlegroups.com


On Thursday, December 6, 2012 2:17:58 AM UTC+1, Kyle Baley wrote:
Is there a non-JSNI way of detecting whether a user is on iOS, specifically iOS 6. We had a bug introduced in our app that happens only on iOS6. It has to do with how two different panels are inserted into the DOM and whether they accept mouse down events. The method we have now works everywhere except on iOS 6 (it works on earlier versions). We have a workaround that works in iOS 6 but it has other minor quirks in the other browsers so we want to implement it only in iOS.

For now, we're using a JSNI method to retrieve the userAgent client-side.

 
I'd like to use Deferred Binding but as far as I know, I can't use it specifically for iOS, just gecko1_8, safari, etc.

Kyle Baley

unread,
Dec 5, 2012, 10:24:54 PM12/5/12
to google-we...@googlegroups.com
Sweet! Thanks.
Reply all
Reply to author
Forward
0 new messages