---
title: Set application version
source: https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile/mobile-sdk/set-application-version
---

> #### ⚠️ IMPORTANT
>
> If you're using a hybrid mobile agent (React Native, .NET Maui, etc.), refer to the platform-specific methods below.

## Android

### Syntax [#syntax]

#### Java [#java]

```java
NewRelic.withApplicationVersion(string $appVersion)
```

#### Kotlin [#kotlin]

```kotlin
NewRelic.withApplicationVersion(appVersion: String?)
```

### Description [#description]

By default, the New Relic Android agent gets the app version from the `AndroidManifest.xml` or `build.gradle`. This method lets you override that value and set an app version by passing the app version. The app version is displayed as a dropdown in the New Relic UI, and you can use it to sort interactions.

### Parameters [#parameters]

| Parameter     | Type     | Description                                          |
| ------------- | -------- | ---------------------------------------------------- |
| `$appVersion` | `string` | Required. String indicating the application version. |

### Example [#example]

#### Java [#java]

```java
NewRelic.withApplicationToken("").withApplicationVersion("1.23.4").start(this.getApplication());
```

#### Kotlin [#kotlin]

```kotlin
NewRelic.withApplicationToken("").withApplicationVersion("1.23.4").start(applicationContext)
```

## iOS

### Syntax [#syntax]

#### Objective-c [#objc]

```objectivec
setApplicationVersion:(NSString *_Nonnull)versionString;
```

#### Swift [#swift]

```swift
NewRelic.setApplicationVersion:(NSString*)versionString;
```

### Description [#description]

By default, New Relic uses the `CFBundleShortVersionString` when reporting the build number. But you can override the reported build number by calling this method (before calling `startWithApplicationToken`).

### Parameters [#parameters]

| Parameter       | Type       | Description                                                    |
| --------------- | ---------- | -------------------------------------------------------------- |
| `versionString` | `NSString` | Required. The string to display as this application's version. |

### Example [#example]

#### Objective-C [#obj-c]

```objectivec
[NewRelic setApplicationVersion:@"1.2.3"];
```

#### Swift [#swift]

```swift
NewRelic.setApplicationVersion("1.2.3")
```
