cordova plugin add cordova-plugin-purchases --save
Include BILLING permission for Android projects
Don't forget to include the BILLING
permission in your AndroidManifest.xml file
<uses-permission android:name="com.android.vending.BILLING" />
Add Strip Frameworks Phase
The App Store, in its infinite wisdom, still rejects fat frameworks, so we need to strip our framework before it is deployed. To do this, add the following script phase to your build.
- In Xcode, in project manager, select your app target.
- Open the
Build Phases
tab - Add a new
Run Script
, name itStrip Frameworks
- Add the following command
"${PROJECT_DIR}/../../node_modules/cordova-plugin-purchases/src/ios/strip-frameworks.sh"
(quotes included)
- Now that you've installed the Purchases SDK in your Cordova app, get started by initializing an instance of Purchases
Updated 8 days ago