resolveAppleAppGroup method

  1. @override
Future<String> resolveAppleAppGroup(
  1. String identifier
)
override

Implementation

@override
Future<String> resolveAppleAppGroup(String identifier) async {
  final path = await methodChannel.invokeMethod<String>(
    'resolveAppleAppGroup',
    {'identifier': identifier},
  );
  if (path == null || path.isEmpty) {
    throw PlatformException(
      code: 'storage_unavailable',
      message: 'The App Group container is unavailable; check entitlements',
    );
  }
  return path;
}