Skip to content

Commit fc668a3

Browse files
committed
website: wire iOS App Store URL and enable Smart App Banner
Patterns is now live on the iOS App Store. Point the App Store badge at the live listing, enable the apple-itunes-app banner so iPhone Safari users get a one-tap install prompt, and refresh the noscript download copy with both iOS and Mac App Store links. Android stays flagged coming soon.
1 parent b5c328d commit fc668a3

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

website/lib/sections/download_section.dart

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ class _DownloadSectionState extends State<DownloadSection> {
2323
static const _macAppStoreUrl =
2424
'https://apps.apple.com/us/app/patterns-ocd-journaling/id6762611172?mt=12';
2525

26-
// iOS App Store URL is null until the 1.1.2 submission is approved. When
27-
// it is, drop in the URL (likely the same App ID without `?mt=12`) and the
28-
// App Store button automatically becomes a real link.
29-
static const String? _iosAppStoreUrl = null;
26+
static const _iosAppStoreUrl =
27+
'https://apps.apple.com/us/app/patterns-ocd-journaling/id6762611172';
3028

3129
// Google Play URL is null until the Android beta lands.
3230
static const String? _playStoreUrl = null;
@@ -139,9 +137,7 @@ class _DownloadSectionState extends State<DownloadSection> {
139137
surfaceAlt: surfaceAlt,
140138
iosUrl: _iosAppStoreUrl,
141139
playUrl: _playStoreUrl,
142-
onIosTap: () => _iosAppStoreUrl == null
143-
? _comingSoon('iOS')
144-
: _open(_iosAppStoreUrl!, 'iOS'),
140+
onIosTap: () => _open(_iosAppStoreUrl, 'iOS'),
145141
onPlayTap: () => _playStoreUrl == null
146142
? _comingSoon('Android')
147143
: _open(_playStoreUrl!, 'Android'),

website/web/index.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@
4040
<meta name="apple-mobile-web-app-title" content="Patterns">
4141
<link rel="apple-touch-icon" href="icons/Icon-192.png">
4242

43-
<!-- Apple Smart App Banner: enable once the iOS App Store listing is live.
44-
Replace APP_ID with the iOS app's Apple ID (numeric). -->
45-
<!-- <meta name="apple-itunes-app" content="app-id=APP_ID"> -->
43+
<!-- Apple Smart App Banner: shows a one-tap install prompt on iPhone Safari. -->
44+
<meta name="apple-itunes-app" content="app-id=6762611172">
4645

4746
<!-- Favicon -->
4847
<link rel="icon" type="image/png" href="favicon.png"/>
@@ -181,7 +180,7 @@ <h2>Features</h2>
181180
<li>Open source — view the code on GitHub</li>
182181
</ul>
183182
<h2>Download</h2>
184-
<p>iOS App Store launch is in review. Android is coming soon. Patterns for macOS is available on the Mac App Store today; Windows and Linux builds are on <a href="https://github.com/maskedsyntax/patterns/releases/latest">GitHub Releases</a>.</p>
183+
<p>Patterns is available on the <a href="https://apps.apple.com/us/app/patterns-ocd-journaling/id6762611172">iOS App Store</a> and the <a href="https://apps.apple.com/us/app/patterns-ocd-journaling/id6762611172?mt=12">Mac App Store</a>. Android is coming soon. Windows and Linux builds are on <a href="https://github.com/maskedsyntax/patterns/releases/latest">GitHub Releases</a>.</p>
185184
<p>Patterns is for personal reflection and self-tracking. It does not diagnose, treat, or replace care from a qualified clinician.</p>
186185
</main>
187186
</noscript>

0 commit comments

Comments
 (0)