1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-25 22:39:22 +00:00

Disable independent push notification services only on Android

This commit is contained in:
Pierre HUBERT 2021-04-27 10:10:13 +02:00
parent 7ed3a1810f
commit 14074617bd

View File

@ -1,4 +1,5 @@
import 'package:comunic/ui/dialogs/alert_dialog.dart'; import 'package:comunic/ui/dialogs/alert_dialog.dart';
import 'package:comunic/utils/flutter_utils.dart';
import 'package:comunic/utils/intl_utils.dart'; import 'package:comunic/utils/intl_utils.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
@ -34,6 +35,6 @@ class IndependentPushNotificationsHelper {
/// Disable independent push notifications service /// Disable independent push notifications service
static Future<void> disable() async { static Future<void> disable() async {
await platform.invokeMethod("disable"); if (isAndroid) await platform.invokeMethod("disable");
} }
} }