Skip to content

Commit

Permalink
Add Smart App Banner for the iOS app
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmuller committed May 19, 2021
1 parent 0b357c0 commit 65ce083
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ Array [
content="@twitter_page"
property="twitter:site"
/>,
<meta
content="app-id=1200842933, app-argument=https://my.site"
name="apple-itunes-app"
/>,
<link
href="https://www.ft.com/__origami/service/image/v2/images/raw/ftlogo-v1%3Abrand-ft-logo-square-coloured?source=update-logos&format=svg"
rel="icon"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ exports[`dotcom-ui-shell/src/components/Shell renders the GTM script when the en
content="@FinancialTimes"
property="twitter:site"
/>
<meta
content="app-id=1200842933"
name="apple-itunes-app"
/>
<link
href="https://www.ft.com/__origami/service/image/v2/images/raw/ftlogo-v1%3Abrand-ft-logo-square-coloured?source=update-logos&format=svg"
rel="icon"
Expand Down
6 changes: 6 additions & 0 deletions packages/dotcom-ui-shell/src/components/DocumentHead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ const DocumentHead = (props: TDocumentHeadProps) => (
<meta property="twitter:site" content={props.twitterSite} />
<OpenGraph openGraph={props.openGraph} />

{/* native apps */}
<meta
name="apple-itunes-app"
content={props.canonicalURL ? `app-id=1200842933, app-argument=${props.canonicalURL}` : 'app-id=1200842933'}
/>

{/* packaging */}
<link
rel="icon"
Expand Down

0 comments on commit 65ce083

Please sign in to comment.