isMinVersionSupported
Functional API
isMinVersionSupportedYou can use the same feature with it as well.
Feature description
Checks whether the current Toss app version is at or above the minimum supported version for each platform. Compares based on the version corresponding to the current platform (Android/iOS).
'always'If specified, always on that platformtrueis returned.'never'If specified, always on that platformfalseis returned.In the sandbox environment, always regardless of version
trueis returned.
Type
isMinVersionSupported(minVersions): boolean;Params
{
android: `${number}.${number}.${number}` | "always" | "never";
ios: `${number}.${number}.${number}` | "always" | "never";
}Response
boolean.
Example code
Was this helpful?