mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-12-26 12:58:51 +00:00
Disable independent push notification services only on Android
This commit is contained in:
parent
7ed3a1810f
commit
14074617bd
@ -1,4 +1,5 @@
|
||||
import 'package:comunic/ui/dialogs/alert_dialog.dart';
|
||||
import 'package:comunic/utils/flutter_utils.dart';
|
||||
import 'package:comunic/utils/intl_utils.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
@ -34,6 +35,6 @@ class IndependentPushNotificationsHelper {
|
||||
|
||||
/// Disable independent push notifications service
|
||||
static Future<void> disable() async {
|
||||
await platform.invokeMethod("disable");
|
||||
if (isAndroid) await platform.invokeMethod("disable");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user