{"id":13428437,"url":"https://github.com/hypery2k/cordova-barcodescanner-plugin","last_synced_at":"2025-03-16T01:32:40.224Z","repository":{"id":27998135,"uuid":"31492343","full_name":"hypery2k/cordova-barcodescanner-plugin","owner":"hypery2k","description":"barcode scanner plugin for PhoneGap","archived":true,"fork":true,"pushed_at":"2018-06-06T14:44:28.000Z","size":4201,"stargazers_count":51,"open_issues_count":28,"forks_count":40,"subscribers_count":9,"default_branch":"develop","last_synced_at":"2024-04-14T04:28:18.210Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"phonegap-build/BarcodeScanner","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hypery2k.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.MD","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-01T09:38:52.000Z","updated_at":"2023-09-28T18:28:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hypery2k/cordova-barcodescanner-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypery2k%2Fcordova-barcodescanner-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypery2k%2Fcordova-barcodescanner-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypery2k%2Fcordova-barcodescanner-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypery2k%2Fcordova-barcodescanner-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hypery2k","download_url":"https://codeload.github.com/hypery2k/cordova-barcodescanner-plugin/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243814901,"owners_count":20352037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-07-31T01:00:57.219Z","updated_at":"2025-03-16T01:32:39.723Z","avatar_url":"https://github.com/hypery2k.png","language":"Java","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=AGPGLZYNV6Y5S"],"categories":["Plugins"],"sub_categories":[],"readme":"BarcodeScanner\n==============\n\n**DISCONTINUED**\n\n\u003e If anybody wants to takeover the project feel free to contact me\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/hypery2k/cordova-barcodescanner-plugin.svg)](https://greenkeeper.io/) [![Build Status](https://travis-ci.org/hypery2k/cordova-barcodescanner-plugin.svg?branch=master)](https://travis-ci.org/hypery2k/cordova-barcodescanner-plugin) [![Build status](https://ci.appveyor.com/api/projects/status/298mrueury1ntrf4?svg=true)](https://ci.appveyor.com/project/hypery2k/cordova-barcodescanner-plugin)\n [![Bountysource](https://www.bountysource.com/badge/tracker?tracker_id=12908089)](https://www.bountysource.com/trackers/12908089-hypery2k-cordova-barcodescanner-plugin?utm_source=12908089\u0026utm_medium=shield\u0026utm_campaign=TRACKER_BADGE)\n\n\u003e cross-platform barcode scanner for cordova\n\n\nPlugin is still **WIP**\n\n[![NPM](https://nodei.co/npm/cordova-plugin-barcodescanner.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/cordova-plugin-barcodescanner/)\n\n\u003ca name=\"donation\"\u003e\u003c/a\u003e\n\u003e Feel free to **donate**\n\u003e\n\u003e \u003ca href='http://www.pledgie.com/campaigns/33053'\u003e\u003cimg alt='Click here to lend your support and make a donation at www.pledgie.com !' src='http://www.pledgie.com/campaigns/33053.png?skin_name=chrome' border='0' /\u003e\u003c/a\u003e\n\u003e \u003ca target=\"_blank\" href=\"https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=AGPGLZYNV6Y5S\"\u003e\n\u003e \u003cimg alt=\"\" border=\"0\" src=\"https://www.paypalobjects.com/de_DE/DE/i/btn/btn_donateCC_LG.gif\"/\u003e\n\u003e \u003c/img\u003e\u003c/a\u003e\n\u003e Or donate Bitcoins: bitcoin:3NKtxw1SRYgess5ev4Ri54GekoAgkR213D\n\u003e\n\u003e [![Bitcoin](https://martinreinhardt-online.de/bitcoin.png)](bitcoin:3NKtxw1SRYgess5ev4Ri54GekoAgkR213D)\n\u003e\n\u003e Also via [greenaddress](https://greenaddress.it/pay/GA3ZPfh7As3Gc2oP6pQ1njxMij88u/)\n\n## Supported Platforms\n\n- Android\n- iOS\n- Windows 8\n- Windows Phone 8\n\n\n## Installation\n\n```\ncordova plugin add cordova-plugin-barcodescanner\n```\nOr if you want to use the development version (nightly build), which maybe not stable!:\n\n```\ncordova plugin add cordova-plugin-barcodescanner@next\n```\n\nOn Android you have to the following entry to config.xml\n\n```\n\u003cconfig-file target=\"AndroidManifest.xml\" parent=\"/*\" mode=\"merge\"\u003e\n    \u003cuses-permission android:name=\"android.permission.CAMERA\" /\u003e\n    \u003cuses-feature android:name=\"android.hardware.camera\" /\u003e\n    \u003cuses-feature android:name=\"android.hardware.camera.autofocus\" /\u003e\n\u003c/config-file\u003e\n```\n\n## Development\n\n### Running integration tests\n\nexecute the `runIntegrationTests.sh` script for a specific platform:\n\n```\nPLATFORM='android' ./runIntegrationTests.sh\n```\n\n```\nPLATFORM='ios' ./runIntegrationTests.sh\n```\n\n### Details\n\n\n\u003eThe Android source for this project includes an Android Library Project.\nplugman currently doesn't support Library Project refs, so its been\nprebuilt as a jar library. Any updates to the Library Project should be\ncommitted with an updated jar.\n\n## Using the plugin ##\nThe plugin creates the object `cordova/plugin/BarcodeScanner` with the method `scan(success, fail)`.\n\nThe following barcode types are currently supported:\n### Android\n\n* QR_CODE\n* DATA_MATRIX\n* UPC_E\n* UPC_A\n* EAN_8\n* EAN_13\n* CODE_128\n* CODE_39\n* CODE_93\n* CODABAR\n* ITF\n* RSS14\n* PDF417\n* RSS_EXPANDED\n\n### iOS\n\n* QR_CODE\n* DATA_MATRIX\n* UPC_E\n* UPC_A\n* EAN_8\n* EAN_13\n* CODE_128\n* CODE_39\n* ITF\n\n### Windows8\n\n* UPC_A\n* UPC_E\n* EAN_8\n* EAN_13\n* CODE_39\n* CODE_93\n* CODE_128\n* ITF\n* CODABAR\n* MSI\n* RSS14\n* QR_CODE\n* DATA_MATRIX\n* AZTEC\n* PDF417\n\n### Windows Phone 8\n\n* UPC_A\n* UPC_E\n* EAN_8\n* EAN_13\n* CODE_39\n* CODE_93\n* CODE_128\n* ITF\n* CODABAR\n* MSI\n* RSS14\n* QR_CODE\n* DATA_MATRIX\n* AZTEC\n* PDF417\n\n`success` and `fail` are callback functions. Success is passed an object with data, type and cancelled properties. Data is the text representation of the barcode data, type is the type of barcode detected and cancelled is whether or not the user cancelled the scan.\n\nA full example could be:\n```\n   cordova.plugins.barcodeScanner.scan(\n      function (result) {\n          alert(\"We got a barcode\\n\" +\n                \"Result: \" + result.text + \"\\n\" +\n                \"Format: \" + result.format + \"\\n\" +\n                \"Cancelled: \" + result.cancelled);\n      },\n      function (error) {\n          alert(\"Scanning failed: \" + error);\n      }\n   );\n```\n\n## Encoding a Barcode ##\nThe plugin creates the object `window.plugins.barcodeScanner` with the method `encode(type, data, success, fail)`.\nSupported encoding types:\n\n* TEXT_TYPE\n* EMAIL_TYPE\n* PHONE_TYPE\n* SMS_TYPE\n\n```\nA full example could be:\n\n   cordova.plugins.barcodeScanner.encode(BarcodeScanner.Encode.TEXT_TYPE, \"http://www.nytimes.com\", function(success) {\n            alert(\"encode success: \" + success);\n          }, function(fail) {\n            alert(\"encoding failed: \" + fail);\n          }\n        );\n```\n\n## Windows8 quirks ##\nWindows 8 implenemtation currently doesn't support encode functionality.\n\n## Windows Phone 8 quirks ##\nWindows Phone 8 implenemtation currently doesn't support encode functionality.\n\n\n## Licence ##\n\nThe MIT License\n\nCopyright (c) 2010 Matt Kane\n\nCopyright (c) 2015 Martin Reinhardt\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypery2k%2Fcordova-barcodescanner-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhypery2k%2Fcordova-barcodescanner-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypery2k%2Fcordova-barcodescanner-plugin/lists"}