diff --git a/lib/helpers/independent_push_notifications_helper.dart b/lib/helpers/independent_push_notifications_helper.dart index 2119dce..30710d3 100644 --- a/lib/helpers/independent_push_notifications_helper.dart +++ b/lib/helpers/independent_push_notifications_helper.dart @@ -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 disable() async { - await platform.invokeMethod("disable"); + if (isAndroid) await platform.invokeMethod("disable"); } }