Home

Awesome

cordova-subscription-example

How to unlock a simple subscription-based premium feature in a cordova application.

View the demo in action.

How to get started

Example without a backend server

Note: If you are curious to know what those npm run commands do, just type npm run without arguments.

Example with a backend server

This example requires you to deploy the demo server: https://github.com/iaptic/iaptic-example-nodejs-backend It's a minimal server that handles user sessions and subscription status.

Running the demo is similar to the example without a server.

All configuration for that example is in www/ts/configuration.ts

Reading through the code

Source code in typescript is included in the cordova/www/ts directory.

Copyright

(c) 2023, Jean-Christophe HOELT

License: MIT