Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to identify user click from iphone "home screen"

Some users of my mobile site add the site to home screen in safari in iPhone (using "add to home screen"). Is there any way to know if they come from clicking the home icon, or typing the url?

Or, to solve my problem, I want know how many users "add to home screen" and come back

Many thanks Bob

like image 621
Bob Avatar asked Dec 28 '10 07:12

Bob


People also ask

How do I identify an iPhone user?

Hit Command+N or click the “Compose” button in the upper left corner of the iMessage window. Start typing a name to see the contacts list populate. Look for the blue iMessage badge next to names of users who can receive iMessages.

How can I see who has access to my iPhone?

Sign in to the Apple ID website (https://appleid.apple.com) and review all the personal and security information in your account to see if there is any information that someone else has added. If you have two-factor authentication turned on, review trusted devices for any devices that you don't recognize.


1 Answers

I've tested it by setting up a webserver on my mac. The difference when starting the site from a webclip is, that mobile safari sends out additional requests for the homescreen 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 requests are:

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 could check for those GET-Requests on the server.

I don't know if this happens everytime when clicking the webclip or only once.

like image 76
Felix Avatar answered Sep 24 '22 08:09

Felix