IPhone : How to detect iPhone 6 and 6 Plus via JavaScript/jQuery (or PHP)?

on Tuesday, March 31, 2015

Is there a way to detect iPhone 6 and 6 Plus via JavaScript or PHP ? I need a boolean value for a conditional if else in jQuery. It's for a web app in Safari (or UIWebView). I tried to detect the screen resolution but because of meta viewport or pixel ration (I don't really know) the output value is the same on iPhone 5, iPhone 6 and 6 Plus. Thanks in advance !


0 comments:

Post a Comment