Working with status code 1025#
Applies to LUNA ID for iOS only.
Status code 1025 applies to LUNA ID for iOS and informs about a license check failure.
To retrieve status code 1025 and its corresponding error message, do the following:
1․ Call the activateLicense
method. Here is an example of how you might set this up:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any] ? )->Bool {
AppAppearance.setupAppearance()
let configuration = LCLunaConfiguration()
configuration.identifyHandlerID = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
configuration.registrationHandlerID = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
configuration.verifyID = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
configuration.lunaAccountID = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
configuration.lunaServerURL = URL(string: "https://luna-api-aws.visionlabs.ru/6")
configuration.plistLicenseFileName = "vllicense.plist"
let error = configuration.activateLicense()debugPrint("error while license check \(error)")
let viewController = LERootViewController()
let navvc = UINavigationController(rootViewController: viewController)window = UIWindow(frame: UIScreen.main.bounds)
window?.backgroundColor = .white window?.rootViewController = navvc
window?.makeKeyAndVisible()
return true
}
2․ Get the error message by calling (error as NSError).localizedDescription
. This will give you a more detailed description of what went wrong.
3․ Get the error code by calling (error as NSError).code
. This will help you identify and troubleshoot specific issues related to the license activation process.