diff --git a/assets/l10n/intl_en.arb b/assets/l10n/intl_en.arb index 7c0de10f..e91766e2 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 663d2cdc..7f7bd88c 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);