How to determine user click with iphone "home screen"

Some users of my mobile site add the site to the home screen in safari on the iPhone (using "add to home screen"). Is there a way to find out if they came from a click on the home icon or by typing a URL?

Or, to solve my problem, I want to know how many users β€œadd to the home screen” and return

Thank you so much bob

+8
iphone mobile-safari ipad homescreen
source share
2 answers

I tested it by setting up a web server on my mac. The difference when starting the site with a web clip is that the mobile safari sends additional requests for the desktop icon:

GET /apple-touch-icon-57x57-precomposed.png HTTP/1.1 Host: 10.0.2.1 User-Agent: MobileSafari/6533.18.5 CFNetwork/485.12.7 Darwin/10.4.0 Accept: */* Accept-Language: de-de Accept-Encoding: gzip, deflate Connection: keep-alive 

Other observed queries:

 GET /apple-touch-icon-57x57.png HTTP/1.1 GET /apple-touch-icon-precomposed.png HTTP/1.1 GET /apple-touch-icon.png HTTP/1.1 

You can check these GET requests on the server.

I do not know if this happens every time you click on a web clip or only once.

+3
source share

What is it! You probably can't! You do not need to know what the user is doing outside your application (of any kind, thanks to BoltCloch ;-)). This is the whole principle of the sandy environment.

+1
source share

Source: https://habr.com/ru/post/650486/


All Articles