iPhone WebApps, is there a way to detect how it was loaded? Home Screen vs Safari?

前端 未结 8 715
走了就别回头了
走了就别回头了 2020-12-02 07:56

I have an iPhone Web App, and I\'m interested in detecting if the app was loaded either from:

  1. iPhone Safari
  2. iPhone installed web app (via the add to m
8条回答
  •  渐次进展
    2020-12-02 08:34

    Check the HTTP-Headers when accessing the site from iPhone Safari and the WebApp to see if they are different.

    I don't know if they are, but if they are, I'm sure you'll be able to implement that somewhere in your website.

    http://php.net/manual/en/function.headers-list.php

提交回复
热议问题