Determine if user navigated from mobile Safari

See https://developer.chrome.com/multidevice/user-agent#chrome_for_ios_user_agent – the user agent strings for Safari on iOS and for Chrome on iOS are inconveniently similar: Chrome Mozilla/5.0 (iPhone; U; CPU iPhone OS 5_1_1 like Mac OS X; en) AppleWebKit/534.46.0 (KHTML, like Gecko) CriOS/19.0.1084.60 Mobile/9B206 Safari/7534.48.3 Safari Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543 … Read more

Does iPhone/iPad Safari require ‘Accept-Ranges’ header for video?

I found some Apple documentation that says that it does in fact need that for video. HTTP servers hosting media files for iOS must support byte-range requests, which iOS uses to perform random access in media playback. (Byte-range support is also known as content-range or partial-range support.) Most, but not all, HTTP 1.1 servers already … Read more

Debug iPad Safari with a PC

Update October 2019 This solution doesn’t work for IOS 12+ (resource 1, resource 2). Updated and tested on 24/6/2017 Using Chrome on Windows 8 and more recent: Download and install Node Download and install ITunes and connect it to your Device. (A pop-up should shows to your iPad to get authorization) . Be sure to … Read more

Launching app OR app store from Safari?

It’s not possible to check if app is installed from a web page. You could do it inside an other app by checking if your url scheme can be opened using UIApplication’s -canOpenURL: method, but there is no javascript equivalent to this. However, you can use the following workaround: <script language=”javascript”> function open_appstore() { window.location=’http://itunes.com/’; … Read more