enableBackgroundDelivery static method

Future<bool> enableBackgroundDelivery({
  1. required String connectionId,
  2. required List<String> types,
})

Implementation

static Future<bool> enableBackgroundDelivery({
  required String connectionId,
  required List<String> types,
}) async {
  if (!Platform.isIOS) {
    return false;
  }

  final result = await _channel.invokeMethod('enableBackgroundDelivery', {
    'connectionId': connectionId,
    'types': types,
  });

  ExceptionHandler.checkException(result);

  return result == true;
}