Guide for integrating Purchasely SDK inside your Cordova app
cordova plugin add @purchasely/cordova-plugin-purchasely
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 :
cordova platform add ios
AndroidX is mandatory to display our paywalls, it is deactivated by default. You can enable it easily by editing your config.xml file.
<allow-intent href="market:*" />
<preference name="AndroidXEnabled" value="true" />
You must have an Android platform for your project. If it is not the case, you can simply add it with a cordova command :
cordova platform add android
Our Cordova SDK does not contains a store 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
Then you add the stores dependencies you wish to use.
//Google Play Store
//Amazon App Store
//Huawei Mobile Services
Huawei needs a little more configuration to work properly, to integrate Huawei Mobile Services, please refer to our Android documentation : https://docs.purchasely.com/quick-start/sdk-installation/quick-start#huawei-mobile-services