initialize method
Implementation
@override
Future<void> initialize(String workspaceId, {bool enableLogs = false}) async {
if (_initialized) {
debugPrint('MoEngage: Already initialized');
return;
}
try {
_initialize(workspaceId, enableLogs);
} catch (e) {
debugPrint('MoEngage: Initialization failed: $e');
_initialized = false;
rethrow;
}
}