initialize method

Future<void> initialize()

Initialize the web refresh service This should be called after Remote Config initialization on web platforms only

Implementation

Future<void> initialize() async {
  if (!kIsWeb) {
    logd('🚫 WebRemoteConfigRefreshService: Not a web platform, skipping initialization');
    return;
  }

  if (_isInitialized) {
    logd('✅ WebRemoteConfigRefreshService: Already initialized');
    return;
  }

  logd('🌐 WebRemoteConfigRefreshService: Initializing for web platform...');

  // Start periodic refresh (every 5 minutes)
  _startPeriodicRefresh();
  _isInitialized = true;

  logd('✅ WebRemoteConfigRefreshService: Initialized successfully');
}