> For the complete documentation index, see [llms.txt](https://developers-apps-in-toss.toss.im/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers-apps-in-toss.toss.im/documentation/api-and-sdk-en/common/network-environment/version.md). Agents can also search and read this documentation through its [MCP server](https://developers-apps-in-toss.toss.im/~gitbook/mcp).

# Version

### 1. Getting the Toss app version (`getTossAppVersion`)

`getTossAppVersion` The function gets the Toss app version. For example, `5.206.0`It is returned in a form like this. It is used to log the Toss app version or when a certain feature should run only on versions above a specific one.

**Signature**

```typescript
function getTossAppVersion(): string;
```

**Return value**

* string

  Toss app version

**Example**

{% tabs %}
{% tab title="js" %}

```js
import { getTossAppVersion } from '@apps-in-toss/web-framework';

const tossAppVersion = getTossAppVersion();
```

{% endtab %}

{% tab title="React" %}

```tsx
import { getTossAppVersion } from '@apps-in-toss/web-framework';
import { Text } from '@toss/tds-mobile';

function TossAppVersionPage() {
  const tossAppVersion = getTossAppVersion();

  return <Text>{tossAppVersion}</Text>;
}
```

{% endtab %}

{% tab title="React Native" %}

```tsx
import { getTossAppVersion } from '@apps-in-toss/framework';
import { Text } from '@toss/tds-react-native';

function TossAppVersionPage() {
  const tossAppVersion = getTossAppVersion();

  return <Text>{tossAppVersion}</Text>;
}
```

{% endtab %}
{% endtabs %}

***

### 2. Checking the app's minimum version (`isMinVersionSupported`)

This function checks whether the version of the Toss app currently running satisfies the minimum version requirement passed as a parameter. When a certain feature only works on the latest version, you can guide users to update the app.

**Signature**

```typescript
function isMinVersionSupported(minVersions: {
  android: `${number}.${number}.${number}` | 'always' | 'never';
  ios: `${number}.${number}.${number}` | 'always' | 'never';
}): boolean;
```

**Parameter**

* **minVersions** · Required · `Object`

  An object that specifies the minimum version requirements for each platform.

  * **minVersions.android** · Required · `(`${number}.${number}.${number} `| &#39;always&#39; | &#39;never&#39;))`

    The minimum version requirement for the Android platform.
  * **minVersions.ios** · Required · `(`${number}.${number}.${number} `| &#39;always&#39; | &#39;never&#39;))`

    The minimum version requirement for the iOS platform.

**Return value**

* boolean

  Returns true if the current app version is at least the minimum version, otherwise returns false.

**Example**

{% tabs %}
{% tab title="js" %}

```js
import { isMinVersionSupported } from '@apps-in-toss/web-framework';

const isSupported = isMinVersionSupported({
  android: '1.2.0',
  ios: '1.3.0',
});
```

{% endtab %}

{% tab title="React" %}

```tsx
import { isMinVersionSupported } from '@apps-in-toss/web-framework';
import { Text } from '@toss/tds-mobile';

function VersionCheck() {
  const isSupported = isMinVersionSupported({
    android: '1.2.0',
    ios: '1.3.0',
  });

  return <div>{!isSupported && <Text>An update to the latest version is required.</Text>};
}
```

{% endtab %}

{% tab title="React Native" %}

```tsx
import { isMinVersionSupported } from '@apps-in-toss/framework';
import { Text } from '@toss/tds-react-native';
import { View } from 'react-native';

function VersionCheck() {
  const isSupported = isMinVersionSupported({
    android: '1.2.0',
    ios: '1.3.0',
  });

  return <View>{!isSupported && <Text>An update to the latest version is required.</Text>}</View>;
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers-apps-in-toss.toss.im/documentation/api-and-sdk-en/common/network-environment/version.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
