---
title: "Using the License Key in Other Languages"
canonical_url: "https://www.nutrient.io/guides/ios/license-issues/using-the-license-key-in-other-languages/"
md_url: "https://www.nutrient.io/guides/ios/license-issues/using-the-license-key-in-other-languages.md"
last_updated: "2026-05-15T19:10:05.040Z"
description: "Solutions for common issues and errors in Nutrient iOS SDK with debugging tips and workarounds."
---

If you’re using PSPDFKit in a cross-platform framework, you need to convert the licenses (which are provided in the form of Swift and Objective-C examples) to another language first. This article explains how to use the license key in other languages.

To use PSPDFKit inside your cross-platform project, you first need a valid license key. The license key can be obtained in the [PSPDFKit Portal](https://my.pspdfkit.com) (for existing customers), or by following the link inside the [PSPDFKit demo email](https://www.nutrient.io/guides/ios/demo.md).

---

## Obtaining the License Key

Our [license integration guides](https://www.nutrient.io/../../getting-started/adding-the-license-key) explain how to integrate the license into an app that’s written in Swift or Objective-C. If you want to add the license in another programming language, here’s how to do it.

The license code you get from the PSPDFKit Portal or the demo email is similar to this:

### SWIFT

```swift

PSPDFKit.SDK.setLicenseKey("PQmgAnmE1GsqwrY8nV2Gaq4g9wcg8XDF3p9ymbsw1npPclRg9Wsd3FQZXF2s4OT9BeiKk6g9sutdcy9032sgf8afm432wkq50SrGfi71CDuJCoVdIbF6Zj+BIYeaz38ghlFfydfMOFlfd4H5t0y")

```

### OBJECTIVE-C

```objc

[PSPDFKitGlobal setLicenseKey:@"PQmgAnmE1GsqwrY8nV2Gaq4g9wcg8XDF3p9ymbsw1npPclRg9Wsd3FQZXF2s4OT9BeiKk6g9sutdcy9032sgf8afm432wkq50SrGfi71CDuJCoVdIbF6Zj+BIYeaz38ghlFfydfMOFlfd4H5t0y"];

```

## Using the License Key in Apache Cordova and Ionic

In [Cordova and Ionic](https://github.com/PSPDFKit/PSPDFKit-Cordova), you can set your license key like this:

```js

PSPDFKit.setLicenseKey(
	'PQmgAnmE1GsqwrY8nV2Gaq4g9wcg8XDF3p9ymbsw1npPclRg9Wsd3FQZXF2s4OT9BeiKk6g9sutdcy9032sgf8afm432wkq50SrGfi71CDuJCoVdIbF6Zj+BIYeaz38ghlFfydfMOFlfd4H5t0y',
);

```

## Using the License Key in Flutter

To set the license key in [Flutter](https://github.com/PSPDFKit/pspdfkit-flutter), use this:

```dart

// To set the license key for both platforms, use:
await Pspdfkit.setLicenseKeys("YOUR_FLUTTER_ANDROID_LICENSE_KEY_GOES_HERE", "YOUR_FLUTTER_IOS_LICENSE_KEY_GOES_HERE");

```

## Using the License Key in React Native

To set the license key in [React Native](https://github.com/PSPDFKit/react-native), use this:

```js

// To set the license key for both platforms, use:
Nutrient.setLicenseKeys("YOUR_REACT_NATIVE_ANDROID_LICENSE_KEY_GOES_HERE", "YOUR_REACT_NATIVE_IOS_LICENSE_KEY_GOES_HERE");

```

## Using the License Key in Xamarin

In [Xamarin](https://github.com/PSPDFKit/Xamarin-iOS), you can set your license key like this:

```csharp

PSPDFKitGlobal.SetLicenseKey("PQmgAnmE1GsqwrY8nV2Gaq4g9wcg8XDF3p9ymbsw1npPclRg9Wsd3FQZXF2s4OT9BeiKk6g9sutdcy9032sgf8afm432wkq50SrGfi71CDuJCoVdIbF6Zj+BIYeaz38ghlFfydfMOFlfd4H5t0y");

```
---

## Related pages

- [License Troubleshooting](/guides/ios/troubleshooting/license-troubleshooting.md)
- [Finding The App Bundle Id](/guides/ios/faq/finding-the-app-bundle-id.md)
- [How to find the currently used SDK version](/guides/ios/license-issues/getting-the-currently-used-version.md)
- [Updates Have Expired](/guides/ios/license-issues/updates-have-expired.md)
- [Understanding bundle IDs for iOS app development](/guides/ios/faq/what-is-a-bundle-id.md)

