From ace27620f3eeb58e777f9a6c143ec2faa161cf30 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Fri, 21 Nov 2025 19:00:34 +0000 Subject: [PATCH] Hide Google Play downloads on iOS Tauri builds Apple App Store policies prohibit showing alternative app stores. This change conditionally hides Google Play content on iOS devices: - Homepage: Hide Google Play badge when running on iOS - Downloads page: Hide entire Android section when running on iOS Uses existing isIOS() platform detection utility. Fixes #314 Co-authored-by: Anthony --- frontend/src/components/Marketing.tsx | 24 ++++--- frontend/src/routes/downloads.tsx | 94 +++++++++++++++------------ 2 files changed, 66 insertions(+), 52 deletions(-) diff --git a/frontend/src/components/Marketing.tsx b/frontend/src/components/Marketing.tsx index ece8f2623..8f772a9e3 100644 --- a/frontend/src/components/Marketing.tsx +++ b/frontend/src/components/Marketing.tsx @@ -327,7 +327,7 @@ export function Marketing() {
- - Get it on Google Play - + {!isIOSPlatform && ( + + Get it on Google Play + + )}
diff --git a/frontend/src/routes/downloads.tsx b/frontend/src/routes/downloads.tsx index a64d06b2d..6ebba39e5 100644 --- a/frontend/src/routes/downloads.tsx +++ b/frontend/src/routes/downloads.tsx @@ -7,6 +7,7 @@ import { Apple } from "@/components/icons/Apple"; import { Android } from "@/components/icons/Android"; import { useState, useEffect } from "react"; import { getLatestDownloadInfo } from "@/utils/githubRelease"; +import { isIOS } from "@/utils/platform"; import packageJson from "../../package.json"; interface DownloadUrls { @@ -30,6 +31,7 @@ const FALLBACK_URLS: DownloadUrls = { }; function DownloadPage() { + const isIOSPlatform = isIOS(); const [downloadUrls, setDownloadUrls] = useState(FALLBACK_URLS); const [currentVersion, setCurrentVersion] = useState(FALLBACK_VERSION); const [releaseUrl, setReleaseUrl] = useState( @@ -228,52 +230,58 @@ function DownloadPage() { -
-
- -
-

Android

-

- Download our native Android app for phones and tablets. -

-
- - Get it on Google Play - -
-

- Want to test the latest features before they hit the Play Store? Join our beta - program. -

-
- - Join Google Play Beta - - - or download APK directly - + {!isIOSPlatform && ( +
+
+ +
+

Android

+

+ Download our native Android app for phones and tablets. +

+
+ + Get it on Google Play + +
+

+ Want to test the latest features before they hit the Play Store? Join our beta + program. +

+
-
+ )}