fix: Dont recommend microG on iPhone

This commit is contained in:
Christian Pauly 2021-05-23 07:12:44 +02:00
parent 5d13a2c5d7
commit ab4ea74d00
2 changed files with 9 additions and 2 deletions

View file

@ -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",

View file

@ -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);