Distinguish between iPhone web browser and iPhone app user agent

后端 未结 3 1367
北海茫月
北海茫月 2020-12-09 11:16

What is the best way to distinguish on a server between a request that came from an iPhone through the web browser vs through an iphone with an app written in objective c? W

3条回答
  •  清歌不尽
    2020-12-09 12:03

    I believe user agents from the Safari app start with "Mozilla", while user agents from apps start with the name of the app.

提交回复
热议问题