1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-09-18 21:38:48 +00:00

Avoid potential Google Play Store ban

This commit is contained in:
2021-04-13 19:45:18 +02:00
parent 6e274fa21a
commit 3520d5db58
5 changed files with 39 additions and 19 deletions

View File

@@ -121,7 +121,8 @@ class _PushNotificationsConfigurationRouteState
break;
case PushNotificationsStatus.INDEPENDENT:
await IndependentPushNotificationsHelper.preConfigure();
if (await IndependentPushNotificationsHelper.needPreConfiguration())
await IndependentPushNotificationsHelper.preConfigure(context);
break;
default:

View File

@@ -1,6 +1,5 @@
import 'package:comunic/helpers/account_helper.dart';
import 'package:comunic/helpers/events_helper.dart';
import 'package:comunic/helpers/push_notifications_helper.dart';
import 'package:comunic/helpers/server_config_helper.dart';
import 'package:comunic/helpers/version_helper.dart';
import 'package:comunic/helpers/websocket_helper.dart';
@@ -78,8 +77,8 @@ class _InitializeWidgetState extends SafeState<InitializeWidget> {
}
print("Check push notifications configuration...");
if (await PushNotificationsHelper.getLocalStatus() ==
PushNotificationsStatus.UNDEFINED)
/*if (await PushNotificationsHelper.getLocalStatus() ==
PushNotificationsStatus.UNDEFINED)*/// TODO : remove comment
await showInitialPushNotificationsConfiguration(context);
print("Attempting WebSocket connection...");