What is the official method to detect mobile safari on ios7?
For example:
navigator.userAgent.match(/(iPod|iPhone|iPad)/)
&& navigator.userAgent.match(/AppleWebKit/)
&& navigator.userAgent.match(/OS 7/)
What is the official method to detect mobile safari on ios7?
For example:
navigator.userAgent.match(/(iPod|iPhone|iPad)/)
&& navigator.userAgent.match(/AppleWebKit/)
&& navigator.userAgent.match(/OS 7/)
Try this (to detect iPod touch as well):
navigator.userAgent.match(/(iPad|iPhone|iPod touch);.*CPU.*OS 7_\d/i)
Try this
navigator.userAgent.match(/(iPad|iPhone);.*CPU.*OS 7_\d/i)
/iP(ad|hone|od)/.test(navigator.userAgent)
Gives simple T/F.