AppVersionUpdateService class
Methods
-
checkVersionUpdate()
→ Future<VersionUpdateInfo>
-
Check if an app update is available
-
dispose()
→ void
-
Dispose of the service
-
forceVersionCheck()
→ Future<void>
-
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.
-
forceVersionCheckWithFetch()
→ Future<void>
-
Force a version check with fresh Remote Config fetch (debug use only)
This should only be used for debugging as it counts toward Firebase's 5 fetches/hour limit.
Note: This is rarely needed now that onConfigUpdated works on all platforms including web.
-
getListenerStatus()
→ Map<String, dynamic>
-
Get detailed listener status for debugging
-
initialize()
→ Future<void>
-
Initialize the version update service and start listening for remote config updates
-
isListenerActive()
→ bool
-
Check if the Remote Config listener is active and working
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
testListener()
→ Future<void>
-
Test the Remote Config listener by forcing a manual value check
-
toString()
→ String
-
A string representation of this object.
inherited