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/)
When Safari is not working, the first thing you need to do is to check the network for Safari is available or not. Go to “Settings” > “Cellular” > “Safari” > choose “WLAN & Cellular Data”. If there is no problem with network settings for Safari, but it still doesn't work, go on to try tips below.
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With