From ab4ea74d000525d284ba9ffbfc499b824fa0f930 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sun, 23 May 2021 07:12:44 +0200 Subject: [PATCH] fix: Dont recommend microG on iPhone --- assets/l10n/intl_en.arb | 7 ++++++- lib/utils/background_push.dart | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/assets/l10n/intl_en.arb b/assets/l10n/intl_en.arb index 7c0de10f1..e91766e21 100644 --- a/assets/l10n/intl_en.arb +++ b/assets/l10n/intl_en.arb @@ -1223,11 +1223,16 @@ "type": "text", "placeholders": {} }, - "noGoogleServicesWarning": "It seems that you have no google services on your phone. That's a good decision for your privacy! To receive push notifications in FluffyChat we recommend using microG: https://microg.org/", + "noGoogleServicesWarning": "It seems that you have no google services on your phone. That's a good decision for your privacy! To receive push notifications in FluffyChat we recommend using https://microg.org/ or https://unifiedpush.org/.", "@noGoogleServicesWarning": { "type": "text", "placeholders": {} }, + "oopsPushError": "Oops! Unfortunately, an error occurred when setting up the push notifications.", + "@oopsPushError": { + "type": "text", + "placeholders": {} + }, "none": "None", "@none": { "type": "text", diff --git a/lib/utils/background_push.dart b/lib/utils/background_push.dart index 663d2cdc3..7f7bd88ca 100644 --- a/lib/utils/background_push.dart +++ b/lib/utils/background_push.dart @@ -251,7 +251,9 @@ class BackgroundPush { await loadLocale(); apl.currentState.showSnackBar(SnackBar( content: Text( - l10n.noGoogleServicesWarning, + PlatformInfos.isAndroid + ? l10n.noGoogleServicesWarning + : l10n.oopsPushError, ))); if (null == await store.getItem(SettingKeys.showNoGoogle)) { await store.setItemBool(SettingKeys.showNoGoogle, false);