ComponentOne Xamarin.iOS
Licensing your app using website
Getting Started with Xamarin.iOS Controls > Licensing > Licensing your app using website

ComponentOne Xamarin Edition users can license their app via the ComponentOne website. If you are using ComponentOne Xamarin Edition with Visual Studio on PC, you have the option to use the GrapeCity License Manager Add-in. For more information, see Licensing your app using GrapeCity License Manager Add-in.

How to License your app using the website

  1. Open a pre-existing mobile application or create a new mobile application.
  2. Add the required Xamarin Edition NuGet packages to your application through the NuGet Package Manager.
  3. Visit https://www.grapecity.com/en/my-account/create-app-key.
    You must create a GrapeCity account and login to access this web page.
  4. If you are generating a full license, select your serial number from the drop-down menu at the top of the page. If you are generating a trial license, leave it selected as Evaluation.
  5. Select C# for the language.
  6. In the App Name text box, enter the name of your application. This name should match the Default Namespace of your application. See Finding the Application Name to know how to find the name of your application.
  7. Click the Generate button. A runtime license will be generated in the form of a string contained within a class.
  8. Copy the license and complete the following steps to add it in your application.
    1. Open your application in Visual Studio.
    2. In the Solution Explorer, right-click the project YourAppName.
    3. Select Add | New. The Add New Item dialog appears.
    4. Under installed templates, select C# | Class.
    5. Set the name of the class as License.cs and click OK.
    6. In the class License.cs, create a new string to store the runtime license inside the constructor as shown below.
      C#
      Copy Code
      public static class License
      {
          public const string Key = "Your Key";
      }
    7. From the Solution Explorer, open AppDelegate.cs and set the runtime license inside the FinishedLaunching() method as shown below.
      C#
      Copy Code
      C1.iOS.Core.LicenseManager.Key = License.Key;

If you are generating a trial license, your application is now ready to be used for trial purposes. You can repeat this process for any number of applications. You must generate a new trial license for each app because they are unique to the application name.

The trial period is limited to 30 days, which begins when you generate your first runtime license. The controls will stop working after your 30-day trial period is over.