Skip to content

Latest commit

 

History

History
166 lines (104 loc) · 10.4 KB

File metadata and controls

166 lines (104 loc) · 10.4 KB

Apache Cordova plugin demos

GitHub code size GitHub top language GitHub license GitHub last commit

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.

Contents

Building a demo app

To build and test a demo using the provided source code:

  1. Create a Cordova project with the package name shown in the demo directory, such as com.andreszs.gcs.demo.
  2. Replace the generated www directory with the demo's www directory.
  3. Copy the provided res directory and config.xml file when available.
  4. Install cordova-plugin-app-version, which the demos use to display the application version.
  5. Install cordova-plugin-device if the selected demo supports both Android and browser platforms.
  6. Install the plugin demonstrated by the app from npm or GitHub.
  7. 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.

Included demo apps

Biometric authentication demo icon

Bluetooth printer demo icon

  • Plugin: cordova-plugin-btprinter
  • Purpose: Print text, images, barcodes, and QR codes using a paired Bluetooth printer.

Camera Preview demo icon

Fingerprint demo icon

Google Code Scanner demo icon

reCAPTCHA Enterprise demo icon

hCaptcha demo icon

In-app updates demo icon

SafetyNet reCAPTCHA demo icon

SMS Receive demo icon

SMS Retriever demo icon

Native Spinner demo icon

Cloudflare Turnstile demo icon

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.

Contribute

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.

Changes Log

2026-08-27

  • Refreshed the legacy demo app interfaces with Bootstrap 4.6.2 styling.
  • Replaced the custom index.css files with local bootstrap.min.css files.
  • Updated the HTML markup and JavaScript-generated elements for consistent, responsive layouts.
  • Improved the repository documentation, navigation, and build instructions.

2026-08-26

  • Added the cordova-plugin-turnstile demo app, including its source files, setup instructions, and precompiled test APK.