1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-26 06:49:22 +00:00
comunicmobile/lib/helpers/independent_push_notifications_helper.dart

19 lines
584 B
Dart

import 'package:flutter/services.dart';
/// Independent push notifications helper
///
/// @author Pierre Hubert
class IndependentPushNotificationsHelper {
static const platform = const MethodChannel(
"org.communiquons.comunic/independent-push-notifications-service");
/// Call this method to prepare the application for background refresh by
/// requesting appropriate permissions, configuring battery optimization...
///
/// Throws an Exception in case of failure
static Future<void> preConfigure() async {
await platform.invokeMethod("preConfigure");
}
}