{"id":18825555,"url":"https://github.com/outsystems/cordova-outsystems-barcode","last_synced_at":"2026-01-20T20:06:35.172Z","repository":{"id":229835553,"uuid":"712505186","full_name":"OutSystems/cordova-outsystems-barcode","owner":"OutSystems","description":"Cordova Bridge for the OutSystems Officially Supported Barcode Plugin.","archived":false,"fork":false,"pushed_at":"2026-01-13T15:21:21.000Z","size":3147,"stargazers_count":5,"open_issues_count":4,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-13T18:12:00.297Z","etag":null,"topics":["snyk-mobile"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OutSystems.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-10-31T15:46:50.000Z","updated_at":"2025-11-21T04:48:15.000Z","dependencies_parsed_at":"2024-04-15T12:58:25.766Z","dependency_job_id":"cd2e01c8-3bef-4f3d-8e32-a9d7157d5cb7","html_url":"https://github.com/OutSystems/cordova-outsystems-barcode","commit_stats":null,"previous_names":["outsystems/cordova-outsystems-barcode"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/OutSystems/cordova-outsystems-barcode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutSystems%2Fcordova-outsystems-barcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutSystems%2Fcordova-outsystems-barcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutSystems%2Fcordova-outsystems-barcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutSystems%2Fcordova-outsystems-barcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OutSystems","download_url":"https://codeload.github.com/OutSystems/cordova-outsystems-barcode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutSystems%2Fcordova-outsystems-barcode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28612157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T18:56:40.769Z","status":"ssl_error","status_checked_at":"2026-01-20T18:54:26.653Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["snyk-mobile"],"created_at":"2024-11-08T00:59:57.905Z","updated_at":"2026-01-20T20:06:35.157Z","avatar_url":"https://github.com/OutSystems.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cordova-outsystems-barcode\n\n*This plugin is SUPPORTED by OutSystems. Customers entitled to Support Services may obtain assistance through Support.*\n\nA barcode scanner for your mobile application. Supports many popular encoding types of 1D and 2D barcodes, presented in the following table.\n\n**1D Barcodes**\n\n|Code|iOS|Android's ML Kit|Android's ZXing|\n|:-|:-:|:-:|:-:|\n|Codabar|:warning:\u003cbr\u003e(Available from 15.0)|:white_check_mark:|:white_check_mark:|\n|Code 39|:white_check_mark:|:white_check_mark:|:white_check_mark:|\n|Code 93|:white_check_mark:|:white_check_mark:|:white_check_mark:|\n|Code 128|:white_check_mark:|:white_check_mark:|:white_check_mark:|\n|Databar (GS1)|:warning:\u003cbr\u003e(Available from 15.0)|:x:|:white_check_mark:|\n|EAN-8|:white_check_mark:|:white_check_mark:|:white_check_mark:|\n|EAN-13|:white_check_mark:|:white_check_mark:|:white_check_mark:|\n|ITF|:white_check_mark:|:white_check_mark:|:white_check_mark:|\n|ITF-14|:white_check_mark:|:x:|:x:|\n|ISBN-10|:white_check_mark:|:white_check_mark:|:white_check_mark:|\n|ISBN-13|:white_check_mark:|:white_check_mark:|:white_check_mark:|\n|ISBN-13 Dual Barcode|:white_check_mark:|:white_check_mark:|:white_check_mark:|\n|RSSExpanded|:warning:\u003cbr\u003e(Available from 15.0)|:x:|:white_check_mark:|\n|UPC-A|:white_check_mark:|:white_check_mark:|:white_check_mark:|\n|UPC-E|:white_check_mark:|:white_check_mark:|:white_check_mark:|\n\n**2D Barcodes**\n\n|Code|iOS|Android's ML Kit|Android's ZXing|\n|:-|:-:|:-:|:-:|\n|Aztec Code|:white_check_mark:|:white_check_mark:|:white_check_mark:|\n|Data Matrix|:white_check_mark:|:white_check_mark:|:white_check_mark:|\n|MaxiCode|:x:|:x:|:white_check_mark:|\n|Micro PDF 417|:warning:\u003cbr\u003e(Available from 15.0)|:x:|:x:|\n|Micro QR|:warning:\u003cbr\u003e(Available from 15.0)|:x:|:x:|\n|PDF 417|:white_check_mark:|:white_check_mark:|:white_check_mark:|\n|QR Code|:white_check_mark:|:white_check_mark:|:white_check_mark:|\n\n## Installation\n\n```console\ncordova plugin add \u003cpath-to-repo-local-clone\u003e\n```\n\nIt's also possible to install via the repo's URL directly.\n\n```console\ncordova plugin add https://github.com/OutSystems/cordova-outsystems-barcode\n```\n\n## Supported Platforms\n\n- iOS\n- Android\n\n## Methods\n\n* OSBarcode\n\t* [scanBarcode](#scan-barcode)\n\n* OSBarcodeScanner\n\t* [scan](#scan)\n\n### Scan Barcode\n\n```js\ncordova.plugins.OSBarcode.scanBarcode(options, successCallback, errorCallback);\n```\n\nAn action that triggers the barcode reader. If successful, it returns the text associated with the scanned barcode as a String. In case of an error, it returns the associated error code and message (TODO: link to the table).\n\nThe action is composed of the following parameters:\n\n- **options**: A structure containing some configurations to apply to the barcode reader. It's composed of the following properties:\n\t- **scanInstructions**: A text containing the scanning instructions.\n\t- **cameraDirection**: An integer that indicates if the back (1) or front (2) camera will be used when triggering a new scan action.\n\t- **scanOrientation**: An integer that indicates which orientation will the scanner assume: Portrait (1), Landscape (2) or Adaptive (3). \"Adaptive\" uses the device's current orientation.\n\t- **scanButton**: A boolean that will display a scan button on the barcode reader. With the button, scanning will only be triggered when pressing the button instead of automatically when framing the barcode. A second click on the button disables scannning.\n\t- **scanText**: A text to be displayed on the scan button. It will only be shown if **scanButton** is set to true.\n\t- **androidScanningLibrary**: A text equivalent to the **OSBarcodeConstants.AndroidScanningLibrary** structure. It indicates which library will be used to perform the scan: MLKit or ZXing. As the name indicates, it's only applicable to \"Android\".\n- **successCallback**: A structure indicating that the action was successful. It returns a **ScanResult**: a text containing the value associated with the scanned barcode.\n- **errorCallback**: A structure indicating that the action was not successful. It returns an \"error\" structure, composed of:\n\t- **code**: A text containing the error code.\n\t- **message**: A text containing the error message.\n\n### Scan\n\n```js\ncordova.plugins.OSBarcodeScanner.scan(options, successCallback, errorCallback);\n```\n\nBeing the older way to trigger the barcode reader, this was kept to keep retro compatibility. This action calls the [Scan Barcode](#scan-barcode) action, with the possible outputs being the same.\n\nThe action is composed of the following parameters:\n\n- **options**: A structure containing some configurations to apply to the barcode reader. It's composed of the following properties:\n\t- **scanInstructions**: A text containing the scanning instructions.\n\t- **cameraDirection**: An integer that indicates if the back (1) or front (2) camera will be used when triggering a new scan action.\n\t- **scanOrientation**: An integer that indicates which orientation will the scanner assume: Portrait (1), Landscape (2) or Adaptive (3). \"Adaptive\" uses the device's current orientation.\n\t- **scanButton**: A boolean that will display a scan button on the barcode reader. With the button, scanning will only be triggered when pressing the button instead of automatically when framing the barcode. A second click on the button disables scannning.\n\t- **scanText**: A text to be displayed on the scan button. It will only be shown if **scanButton** is set to true.\n- **successCallback**: A structure indicating that the action was successful. It returns a **ScanResult**: a text containing the value associated with the scanned barcode.\n- **errorCallback**: A structure indicating that the action was not successful. It returns an \"error\" structure, composed of:\n\t- **code**: A text containing the error code.\n\t- **message**: A text containing the error message.\n\n## Errors\n\n|Code|Message|iOS|Android|\n|:-|:-|:-:|:-:|\n|OS-PLUG-BARC-0004|Error while trying to scan code.|:white_check_mark:|:white_check_mark:|\n|OS-PLUG-BARC-0006|Couldn't scan because the process was cancelled.|:white_check_mark:|:white_check_mark:|\n|OS-PLUG-BARC-0007|Couldn't scan because camera access wasn’t provided. Check your camera permissions and try again.|:white_check_mark:|:white_check_mark:|\n|OS-PLUG-BARC-0008|Scanning parameters are invalid.|:white_check_mark:|:white_check_mark:|\n|OS-PLUG-BARC-0009|There was an error scanning the barcode with ZXing.|:x:|:white_check_mark:|\n|OS-PLUG-BARC-0010|There was an error scanning the barcode with ML Kit.|:x:|:white_check_mark:|","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutsystems%2Fcordova-outsystems-barcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foutsystems%2Fcordova-outsystems-barcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutsystems%2Fcordova-outsystems-barcode/lists"}