Local Testing

Locally testing and resetting licenses during development

During development you’ll probably want to test your licensing process without waiting days for a trial to expire. The Paddle SDK provides techniques to reset a trial and accelerate a trial so it expires sooner. These techniques require that your app is being run while attached to a debugger, such as Xcode.

Resetting a Trial

In order to reset a time trial you should write PaddleResetTrial to NSUserDefaults for your apps bundle identifier. For example, from the terminal:


defaults write your.app.bundle.identifier PaddleResetTrial -bool YES

Once you have set this simply run your app as normal and the trial period will be reset. To stop a trial from resetting on each launch, just remove the PaddleResetTrial key/value from NSUserDefaults.

Accelerating Trials

If you would like to accelerate time trials within your app (a trial, no matter how long, will expire after 15 minutes from when it began) simply write PaddleAccelerateTrial to NSUserDefaults for your apps bundle identifier. For example, from the terminal:


defaults write your.app.bundle.identifier PaddleAccelerateTrial -bool YES

Once you have set this simply run your app as normal and the time trial will expire 15 minutes after it began. To stop accelerating trials, just remove the PaddleAccelerateTrial key/value from NSUserDefaults.

Questions about Paddle?

If you need any help regarding your Paddle integration, please get in touch with our Customer Success team using the form below.