VersionCheck object methods, allowing you to import only what you need.
getCountry()
Returns the device’s current 2-letter ISO country code.2-letter ISO country code
Example
getStoreUrl()
Returns the store URL for this app. Automatically resolves to the App Store on iOS and Play Store on Android.Store URL for the current app
Example
getLatestVersion()
Fetches the latest version of this app available in the store.Latest version available in the app store
Example
needsUpdate()
Checks whether an app update is available. Uses semantic version comparison. By default checks for any version increase, but you can filter by granularity:"major"— only returnstruefor major bumps (1.x → 2.x)"minor"— returnstruefor major or minor bumps"patch"— returnstruefor any version increase (default)
Parameters
Configuration options for update checking
Granularity level for update checks. One of:
"major"— only major version bumps (1.x → 2.x)"minor"— major or minor bumps (1.2.x → 1.3.x)"patch"— any version increase (default)
Returns
true if an update is available at the specified level, false otherwise