Cordova SDK
Guide for integrating Purchasely SDK inside your Cordova app
Last updated
Was this helpful?
Guide for integrating Purchasely SDK inside your Cordova app
Last updated
Was this helpful?
You can use to install Purchasely by running this command in your project:
Don't forget to change the minimum OS versions to match Purchasely requirements (iOS 11 / Android 21)
You must have an iOS platform for your project. If it is not the case, you can simply add it with a cordova command :
AndroidX is mandatory to display our paywalls, it is . You can enable it easily by editing your config.xml file.
You must have an Android platform for your project. If it is not the case, you can simply add it with a cordova command :
Google is not provided by default as you have a choice on Android To add Google as a store, you can use our Cordova plugin
This dependency version must always match @purchasely/cordova-plugin-purchasely version Be very careful to always update both at the same time
Our Cordova SDK does not contains other stores to avoid unnecessary integrations. You have to specifically declare which stores you want. To add Android dependencies to your project, you need to create a file platforms/android/app/build-extras.gradle
Then you add the stores dependencies you wish to use.
Huawei needs a little more configuration to work properly, to integrate Huawei Mobile Services, please refer to our Android documentation :