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:
parent
7ed3a1810f
commit
14074617bd
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user