forceVersionCheck method

Future<void> forceVersionCheck()

Force a version check (useful for app resume events) This uses cached values and listener updates to avoid hitting Firebase fetch limits. Note: The onConfigUpdated listener (now supported on all platforms including web) will automatically handle real-time updates when they're published.

Implementation

Future<void> forceVersionCheck() async {
  logv('🔄 Force checking version update (using cached values)');

  // Don't fetch from server on app resume to avoid hitting 5 fetches/hour limit
  // The real-time listener will handle updates when they're published
  // and cached values are sufficient for version checking

  logv('â„šī¸ Using cached Remote Config values for version check');
  logv('💡 Real-time updates will be handled by the onConfigUpdated listener (all platforms)');

  await checkVersionUpdate();
}