Skip to content

Commit b409901

Browse files
committed
tweak: hide sponsor button on ios,macos
Guideline 3.1.1 - Business - Payments - In-App Purchase We noticed that your app allows users to contribute donations to the development of your app with a mechanism other than in-app purchase. Although tips or donations may be optional, if they are connected to or associated with receiving digital content, they must use in-app purchase in accordance with guideline 3.1.1
1 parent 34efe67 commit b409901

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

lib/components/settings/app_info.dart

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import 'dart:io';
2+
13
import 'package:flutter/foundation.dart';
24
import 'package:flutter/material.dart';
35
import 'package:flutter_svg/flutter_svg.dart';
@@ -49,11 +51,13 @@ class AppInfo extends StatelessWidget {
4951
applicationLegalese: t.appInfo.licenseNotice(buildYear: buildYear),
5052
children: [
5153
const SizedBox(height: 10),
52-
TextButton(
53-
onPressed: () => launchUrl(sponsorUrl),
54-
child: SizedBox(
55-
width: double.infinity, child: Text(t.appInfo.sponsorButton)),
56-
),
54+
if (!Platform.isIOS && !Platform.isMacOS)
55+
// Apple rejected the app for having donations not through the App Store
56+
TextButton(
57+
onPressed: () => launchUrl(sponsorUrl),
58+
child: SizedBox(
59+
width: double.infinity, child: Text(t.appInfo.sponsorButton)),
60+
),
5761
TextButton(
5862
onPressed: () => launchUrl(licenseUrl),
5963
child: SizedBox(

0 commit comments

Comments
 (0)