I am trying to accessing webpages in C# which are built specifically for iPhones. I have discovered that you can spoof the user agent to be "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3"
to get the website to think you are an iPhone.
However, for some websites, I only get a response telling me to add the website to the home screen first. Looking at the responses, it would seem they are checking some variable "window.navigator.standalone"
to see how the webpage was accessed. After googling (see here) it appears this is a common way to detect whether the webpage was accessed from the home screen or not.
Therefore, the question is, does anyone know how to spoof the rest of a request so the webpage will load instead of continually asking to be added to the home screen?