addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobe--smallglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1launch-new-window--smalllight-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Re: [newtech-1] Free Button in Search Results?

From: Ross S.
Sent on: Monday, March 18, 2013 3:05 AM
this is great. thanks.

On Mar 18, 2013, at 2:41 AM, Phillip Nelson <[address removed]> wrote:


I just wanted to step in and clear any ambiguity here. 

Andre is correct.

Generally this is implemented by looking at the User Agent field in the header sent along most HTTP requests. Most web applications implement a feature like the "Free" button on Google by either writing some logic in Javascript (the front-end) to enable a special experience, or by detecting this in the back-end and changing how you render a page. 

Google almost certainly does this on the back-end. It appears that they show this button for results leading to the actual Apple App Store and they probably pull in a little bit of meta data directly from Apple. So you will not be able to control this. 

However, check out this website for some simple scripts to make a special CTA appear on your own website for iPhone/iPad users:

And everyone else on the thread,

I just double-checked that Google has definitely implemented this feature: you can open the developer tools in Chrome, change the user agent to an iPhone, and you will indeed see Google's "Free" buttons.

Apple most certainly does not modify or inject random HTML or JS into the DOM in mobile safari. That would be ridiculous. It would be unsafe, inefficient, insecure and against web standards. Developers would be in an uproar. In terms of WebKit's relationship with Apple, please read this overview on what WebKit actually is (it's quite complex):


On Sun, Mar 17, 2013 at 12:17 PM, Rudy Rigot <[address removed]> wrote:
As you say, the interpretation is part of the code written by Apple, so, even though nothing proves it is Apple modifying it, technically it could be.

Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Rudy Rigot ([address removed]) from NY Tech Meetup.
To learn more about Rudy Rigot, visit his/her member profile

Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Phillip Nelson ([address removed]) from NY Tech Meetup.
To learn more about Phillip Nelson, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy