User Agent for Safari browser on iOS 7

后端 未结 3 1748
心在旅途
心在旅途 2021-02-05 14:01

I want to open my site only in iPhone and iPod with Safari browser. For any other browser like Chrome, Dolphin, etc, It shouldn\'t open.

But currently I am getting the s

3条回答
  •  北恋
    北恋 (楼主)
    2021-02-05 14:26

    The other answer isn't strictly correct. On iOS, Apple block any competing browsers from actually including their own rendering engine; all must use the standard webview.

    So all of those 3rd party browsers (with functionality such as syncing favourites, etc.) are simply wrappers around the Safari powered webview that's actually rendering the page, hence them all having Safari's user agent string.

提交回复
热议问题