---
title: "Generate and add your Flutter license key"
canonical_url: "https://www.nutrient.io/guides/flutter/troubleshooting/add-license-key/"
md_url: "https://www.nutrient.io/guides/flutter/troubleshooting/add-license-key.md"
last_updated: "2026-05-23T00:08:18.095Z"
description: "Learn how to easily generate and add a license key for your Flutter app to verify your product and access the Nutrient SDK functionalities."
---

# How to add the license key for your Flutter app

Nutrient is a commercial product and uses a license key to verify your copy against the package name you registered.

## Generating the license key

To use a Nutrient license with your app, you have to generate a license key and bind it to the `applicationId` bundle ID of your app.

1. Log in to the [Nutrient Portal](https://my.nutrient.io/) using the credentials you received when purchasing Nutrient. You’ll see the list of all your purchased licenses.

2. Locate your license (e.g. Nutrient iOS SDK) and click the Assign license key button next to it. A dialog will open.

3. Enter the bundle ID of your production app. If you’re unsure about this step, read our [what is a bundle ID?](https://www.nutrient.io/guides/ios/faq/what-is-a-bundle-id.md) guide first.

4. Click next and confirm your selected bundle ID. Double-check that the chosen identifier matches the one configured in your app, as it can no longer be changed once it’s been set.

## Getting the license key

1. Log in to the [Nutrient Portal](https://my.nutrient.io/) using the credentials you received when purchasing Nutrient. You’ll see the list of all your purchased licenses.

2. Locate your license (e.g. Nutrient iOS SDK) and click the License Key button next to it. If there is no such button, you probably need to generate the license key first.

3. A dialog will open showing you a code snippet with your license key.

4. After copying the license key over to your project, the Nutrient SDK will be ready to use.

## Adding the license key

It’s important that you set the license key before using any Nutrient API. During initialization of your widget, register the license key like 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");

```
---

## Related pages

- [How to find your current SDK version](/guides/flutter/troubleshooting/getting-the-currently-used-version.md)
- [Ios Flutter Platform Not Detected](/guides/flutter/troubleshooting/ios-flutter-platform-not-detected.md)
- [Pspdfkit Widget Appcompat Activity Issue](/guides/flutter/troubleshooting/pspdfkit-widget-appcompat-activity-issue.md)
- [Measurement Magnifier Not Working On Android](/guides/flutter/troubleshooting/measurement-magnifier-not-working-on-android.md)
- [Flutter Configuration Problems](/guides/flutter/troubleshooting/flutter-configuration-problems.md)
- [Cocoapods Conflicts With Asdf](/guides/flutter/troubleshooting/cocoapods-conflicts-with-asdf.md)
- [Using Android Gradle Plugin 7](/guides/flutter/troubleshooting/using-android-gradle-plugin-7.md)
- [Manage status bar appearance in Flutter](/guides/flutter/troubleshooting/view-controller-based-status-bar-appearance.md)
- [How to find your iOS app bundle ID quickly](/guides/flutter/troubleshooting/finding-the-bundle-id.md)
- [What Is An App Id](/guides/flutter/troubleshooting/what-is-an-app-id.md)
- [Understanding bundle IDs for iOS app development](/guides/flutter/troubleshooting/what-is-a-bundle-id.md)

