Demo app for testing the ccordova-plugin-google-code-scanner, which allows scanning of codes without requesting camera permissions using the new Google Play Services barcode API. Source code available in GitHub.
The Google code scanner allows scanning of codes with the new play-services-code-scanner library. This API is based on the ML Kit for Android, but with a drastically smaller footprint, there’s no need to bundle the complete ML Kit with your app. Instead, the code scanner only requires a small UI module downloaded on-demand by Google Play Services on first use.
- Android 5+
- Google Play Services updated
Opens the code scanner view to scan barcode with the selected format. If you know which barcode formats you expect to read, you can improve the speed of the barcode detector by configuring it to only detect those formats.
To detect multiple formats, type the sum of the Barcode constants to the provided text area.
Retrieve the Barcode format constant value by its String name. Useful to scan new barcode formats added in the future.
Predefined barcode formats
The following barcode constants are pre-defined by the plugin for your convenience:
- Camera usage permission not required.
- Whenever the Google Play Store app is disabled, the UI module won’t be downloaded.
Download demo app
Use the comments section here for demo app-related issues, and the GitHub issues tracker for plugin-related ones.