initialize method
Initializes the bridge with app group ID.
appGroupId is the App Group identifier for shared container.
Implementation
Future<void> initialize({required String appGroupId}) async {
try {
await _methodChannel.invokeMethod('initialize', {
'appGroupId': appGroupId,
});
} catch (e) {
throw Exception('Failed to initialize iOS bridge: $e');
}
}