check-license-in-production-apps
If your Scanbot license has expired, any call to the Scanbot API will not work. You should always check for license expiration during the runtime by using one of the following methods:
+[Scanbot isLicenseValid]
This method returns a simple boolean flag.false
means the license is not valid or has expired and you should disable any usage of the Scanbot functions or UI components.+[ScanbotSDK licenseStatus]
This methods returns more details about the status of the current license key.
We highly recommend implementing a suitable handling of this case in your app!
Example code for checking the license status:
if ([Scanbot isLicenseValid]) {
// Making your call to the Scanbot undefined API is now safe.
// E.g. undefined
}
What do you think of this documentation?
What can we do to improve it? Please be as detailed as you like.