A collection of source code for Apache Cordova plugin demo apps by Andrés Zsögön. Most directories provide the app's www and res folders, along with a config.xml file when required.
Visit the Cordova plugin demo apps page for usage guides and compiled APK downloads. The Turnstile demo also includes a ready-to-install APK in this repository.
Note
Most legacy demos bundle jQuery 3.6.0. Newer demos use plain JavaScript when no additional library is required.
To build and test a demo using the provided source code:
- Create a Cordova project with the package name shown in the demo directory, such as
com.andreszs.gcs.demo. - Replace the generated
wwwdirectory with the demo'swwwdirectory. - Copy the provided
resdirectory andconfig.xmlfile when available. - Install
cordova-plugin-app-version, which the demos use to display the application version. - Install
cordova-plugin-deviceif the selected demo supports both Android and browser platforms. - Install the plugin demonstrated by the app from npm or GitHub.
- Add the desired Cordova platform, then build or run the project.
Note
Some demos define minSdkVersion and targetSdkVersion preferences in config.xml. If compilation fails because of an SDK mismatch, use the same values in your project.
- Plugin: cordova-plugin-biometric-auth
- Libraries: KeyguardManager and BiometricManager
- Purpose: Authenticate users with biometrics or a fallback PIN, pattern, or password.
- Plugin: cordova-plugin-btprinter
- Purpose: Print text, images, barcodes, and QR codes using a paired Bluetooth printer.
- Plugin: cordova-plugin-camera-preview
- Purpose: Interact directly with the camera from JavaScript and HTML.
- Plugin: cordova-plugin-fingerprint-aio
- Library: FingerprintManager (deprecated)
- Purpose: Authenticate users with fingerprint validation.
- Plugin: cordova-plugin-google-code-scanner
- Library: Google Code Scanner
- Purpose: Scan codes without requesting camera permission while preserving user privacy.
- Plugin: cordova-plugin-recaptcha-enterprise
- Library: Google reCAPTCHA Enterprise
- Purpose: Retrieve tokens for reCAPTCHA Enterprise risk assessments.
- Plugin: cordova-plugin-hcaptcha
- Libraries: hCaptcha Android SDK and browser API
- Purpose: Protect applications from bots, spam, and other forms of automated abuse.
- Plugin: cordova-plugin-in-app-updates
- Library: Google Play In-App Updates
- Purpose: Prompt active users to update an Android app through Google Play.
- Plugin: cordova-plugin-recaptcha-v2
- Library: SafetyNet reCAPTCHA
- Purpose: Protect applications from malicious traffic with the SafetyNet reCAPTCHA API.
- Plugin: cordova-plugin-sms-receive
- Library: Telephony
- Purpose: Receive and read SMS messages using the Android Telephony API.
- Plugin: cordova-plugin-sms-retriever
- Library: SMS Retriever
- Purpose: Receive and read SMS verification messages without requesting SMS permissions.
- Plugin: cordova-plugin-native-spinner
- Purpose: Display a platform-native spinner or message during blocking operations.
- Plugin: cordova-plugin-turnstile
- Library: Cloudflare Turnstile
- Documentation: Demo files and setup instructions
- Download: Precompiled test APK
- Purpose: Run a Turnstile challenge from a developer-hosted HTTPS page, return its token to the Cordova application, and validate it with a separate backend handler.
Important
The precompiled APK uses a public, demo-only combined service. The source contains no preconfigured endpoint URLs and asks the developer for separate challenge and backend URLs.
Note
To keep the apps simple, some demos do not implement every function exposed by their plugins.
Contributions are always welcome. If you find a bug, want to add a missing feature, or have an improvement in mind, please open an issue or submit a pull request. Every bit of feedback helps keep the demo apps useful and reliable.
💙 If these demo apps save you time, you can support their continued development and maintenance through PayPal.
Support the project via PayPal
⭐ If financial support is not an option, star this repository or share it with other Cordova developers—both make a difference.
- Refreshed the legacy demo app interfaces with Bootstrap 4.6.2 styling.
- Replaced the custom
index.cssfiles with localbootstrap.min.cssfiles. - Updated the HTML markup and JavaScript-generated elements for consistent, responsive layouts.
- Improved the repository documentation, navigation, and build instructions.
- Added the
cordova-plugin-turnstiledemo app, including its source files, setup instructions, and precompiled test APK.