Pre loader

SciChart iOS Licensing v2.x

Categories

SciChart iOS Licensing v2.x

Note: This article refers to SciChart iOS v2 or lower. For SciChart iOS v3, please see the updated SciChart iOS Licensing v3.x page

In order to license SciChart for iOS and unlock all its features, there is a simple procedure which must be followed. Without this you won’t be able to compile and debug applications built with SciChart iOS. Licenses are unique to all SciChart products, so licenses for another products cannot be used for SciChart iOS Charts and vice versa.

// Where is my License?

Trial Keys
Please login to start a trial or retrieve your key.   Click here to login or create account
Purchased License Keys

If you have purchased SciChart iOS v2, you should have received a confirmation e-mail with a license XML and serial key. You can also view purchased license keys and serials in your Profile Page. If you don’t have one, please contact SciChart Sales

SciChart Licensing Email Examplef
SciChart Licensing Email Example
 

// Applying the License

The license file contains an XML fragment in the following format applicable to SciChart iOS v2:



  [email protected]
  ABT-123-456
  1
  07/30/2017 00:00:00
  SC-IOS-2D-ENTERPRISE-SRC
  d594ae9c98d87f5050799d7df7ba31bb4e2922e30c2a5c49a6ec39efb659392e425....

The license file contains your company name and order ID, as well as an encrypted key to validate the license. If any of these details are changed, the license will no longer function correctly. Please keep your license file safe as it is unique to your organisation and key-codes contain encrypted information which can be used to identify the customer.

To apply the License, you have to call the static setRuntimeLicenseKey() method somewhere, e.g. in AppDelegate.m file or AppDelegate.swift file in your app.

Applying the License in Swift

[divider style=”5″]

//
// AppDelegate.swift
// SciChartSwiftDemo
//

import UIKit
import SciChart

@UIApplicationMain

class SCSAppDelegate: UIResponder, UIApplicationDelegate {

 var window: UIWindow?

 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

<---   // Note! This is just an example. 
<-----// The real License Contract is found by following steps above
let licencing:String = "" +
"[email protected]" +
"" +
"" +
"true" +
"07/30/2016 00:00:00" +
"SC-IOS-2D-ENTERPRISE-SRC" +
"8b12ae43a224ad73c53..." +
""

SCIChartSurface.setRuntimeLicenseKey(licencing)
 
        return true
 }

}
Applying the License in Objective-C

[divider style=”5″]

//
//   AppDelegate.m
//  SciChartDemo
//
 
#import "AppDelegate.h"
#import "SCDConstants.h"
 
// NOTE: Import SciChart.h 
#import  
 
@interface AppDelegate ()
 
@end
 
@implementation AppDelegate
;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
 
 // Note! This is just an example. 
 // The real License Contract is found by following steps above
 [SCIChartSurface setRuntimeLicenseKey:@""
 "[email protected]"
"ABT123"
"1"
"true"
"07/30/2016 00:00:00"
"SC-IOS-2D-ENTERPRISE-SRC"
"8b12ae43a224ad73c5327abe91eb0d13..."

];

//...
return YES;
}

@end
Applying the License in Xamarin.iOS

[divider style=”5″]

using Foundation;
using UIKit;
using SciChart;

namespace XamarinTestingLicensing
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to application events from iOS.
[Register("AppDelegate")]
public class AppDelegate : UIApplicationDelegate
{
// class-level declarations

public override UIWindow Window
{

set;
}

public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
{
// Override point for customization after application launch.
// If not required for your application you can safely delete this method

var licensingContract = "" +

"test" +
"full" +
"1" +
"false</IsTrialLicense>" +
"06/01/2017 00:00:00" +
"SC-IOS-2D-ENTERPRISE-SRC" +
"30efd52..." +
"";
 
SciChart.iOS.Charting.SCIChartSurface.SetRuntimeLicenseKey(licensingContract);

return true;
}
}
}

// Github Source Code Access

If you are a SciChart iOS Source-Code customers, you can now download the source code via our Github repository. To get access, please follow the steps below:

#1 Register your SciChart License

Go to www.scichart.com/profile. Here you will find your license keys. There are also two boxes to activate an Android or iOS license key.

#1 Register your SciChart License

Enter your developer serial key from your License Certificate email or our Profile page and click activate to register your SciChart license.

Note: You will need to be logged in to scichart to use the profile page. Please log in at or create an account at www.scichart.com/login if you haven’t already
#2 Link to Github

Now enter your Github Username in the box directly below. If you do not have a Github account, head over to www.github.com and register.

#3 Respond to Invitation

You will receive an email with an invitation to join the SciChart iOS Github repository! Accept the invitation to get access!

// Troubleshooting

If you cannot manage to get your application working with the license applied, please check out our licensing troubleshooting page or contact us and we will do our best to help.

By Yaroslav Pelyukh | Jun 15, 2016

Leave a Reply