enableBackgroundDelivery method

Future<void> enableBackgroundDelivery(
  1. Iterable<SpikeDataType<SpikeData<SpikeEntry>>> dataTypes
)

Implementation

Future<void> enableBackgroundDelivery(
  Iterable<SpikeDataType> dataTypes,
) async {
  if (!Platform.isIOS) {
    return;
  }

  await NativeSDKBridge.enableBackgroundDelivery(
    connectionId: connectionId,
    types: dataTypes.map((item) => item.toNativeDataType()).toList(),
  );
}