License Activation (Mac)
The Paddle Mac SDK has a flexible licensing implementation that allows you to use our full solution, just our platform for issuing and validation, or roll your own entirely.
Using Paddle licenses to manage app access requires creation of a Paddle SDK Product in your seller dashboard.
Access Dialog
The SDK provides a standard access dialog, which can be invoked whenever the app is found in an unlicensed state:
The product access dialog is triggered by calling the showProductAccessDialogWithProduct
method. See example below:
Activation Dialog
If you want to direct your users straight to the license activation dialogue instead, you can do so by calling the activation Dialog:
The activation dialog is triggered by calling the showLicenseActivationDialogForProduct
method. See example below:
Programmatic ("Silent") Activation
If you’re making use of our licensing but want to use your own UI, you can make the activation call manually and handle the result as follows:
Automatic Post-Purchase ActivationProgrammatic activation can be used to retrieve a license key returned in a checkout completion block and automatic and automatically activate the license. This saves the user the job of copying and pasting the license into the activation dialog and can reduce the volume of licensing-related support requests.
License Custom Path (Mac)
License custom path allows you to choose where you want the license to be stored.
customStoragePath
is a delegate method that has been introduced in v4.0.13 that allows you to choose where the user license should be stored. E.g., if you would like the license to be accessible for all users on a certain machine you would store the license at /Users/Shared
.
Set delegate to self
:
Add the customStoragePath
delegate method:
License usage
When activating a product you can optionally use an alternative method, which provides further details in the completion block. These details include the usage values of the license being activated.
allowed_uses
total number of allowed activationstimes_used
number of times the license has been activated
Note: This method has been introduced in v4.3