Skip to content

Commit 222a300

Browse files
committed
Hide donation link on iOS to satisfy App Store guideline 3.1.1
External 'Buy us a coffee' (Buy Me a Coffee) link triggered Apple rejection under 3.1.1. Gate the About-section tile behind a platform check so it's omitted on iOS while remaining on Android/Web, where external donation links are permitted.
1 parent d145dd4 commit 222a300

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

lib/screens/settings_screen.dart

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -818,12 +818,15 @@ class _SettingsScreenState extends State<SettingsScreen> {
818818
'Built with contributions from the Greater Ottawa Mesh Radio Enthusiasts community'),
819819
onTap: () => _launchUrl('https://ottawamesh.ca/'),
820820
),
821-
ListTile(
822-
leading: const Icon(Icons.coffee),
823-
title: const Text('Buy us a coffee'),
824-
subtitle: const Text('Support MeshMapper development'),
825-
onTap: () => _launchUrl('https://buymeacoffee.com/meshmapper'),
826-
),
821+
// Buy Me a Coffee — external donation links are fine on Android/Web
822+
// but violate Apple guideline 3.1.1 on iOS, so omit it on iOS.
823+
if (kIsWeb || defaultTargetPlatform != TargetPlatform.iOS)
824+
ListTile(
825+
leading: const Icon(Icons.coffee),
826+
title: const Text('Buy us a coffee'),
827+
subtitle: const Text('Support MeshMapper development'),
828+
onTap: () => _launchUrl('https://buymeacoffee.com/meshmapper'),
829+
),
827830
]),
828831

829832
// Exit Options (Android only)

0 commit comments

Comments
 (0)