Socket
Socket
Sign inDemoInstall

phonegap-plugin-barcodescanner

Package Overview
Dependencies
0
Maintainers
7
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.4 to 7.1.0

6

package.json
{
"name": "phonegap-plugin-barcodescanner",
"version": "7.0.4",
"version": "7.1.0",
"description": "You can use the BarcodeScanner plugin to scan different types of barcodes (using the device's camera) and get the metadata encoded in them for processing within your application.",

@@ -35,2 +35,6 @@ "cordova": {

"cordova-android": ">=6.3.0"
},
"7.1.0": {
"cordova-android": ">=6.3.0",
"cordova": ">=7.1.0"
}

@@ -37,0 +41,0 @@ }

30

README.md

@@ -45,13 +45,2 @@ # PhoneGap Plugin BarcodeScanner

Note: Since iOS 10 it's mandatory to add a `NSCameraUsageDescription` in the info.plist.
`NSCameraUsageDescription` describes the reason that the app accesses the user’s camera.
When the system prompts the user to allow access, this string is displayed as part of the dialog box.
To add this entry you can pass the following variable on plugin install.
```
cordova plugin add phonegap-plugin-barcodescanner --variable CAMERA_USAGE_DESCRIPTION="To scan barcodes"
```
### PhoneGap Build Usage

@@ -63,5 +52,3 @@

<!-- add a version here, otherwise PGB will use whatever the latest version of the package on npm is -->
<plugin name="phonegap-plugin-barcodescanner">
<param name="CAMERA_USAGE_DESCRIPTION" value="To scan barcodes." />
</plugin>
<plugin name="phonegap-plugin-barcodescanner" />
```

@@ -149,2 +136,17 @@ On PhoneGap Build if you're using a version of cordova-android of 4 or less, ensure you're building with gradle:

## iOS quirks ##
Since iOS 10 it's mandatory to add a `NSCameraUsageDescription` in the `Info.plist`.
`NSCameraUsageDescription` describes the reason that the app accesses the user's camera.
When the system prompts the user to allow access, this string is displayed as part of the dialog box. If you didn't provide the usage description, the app will crash before showing the dialog. Also, Apple will reject apps that access private data but don't provide an usage description.
To add this entry you can use the `edit-config` tag in the `config.xml` like this:
```
<edit-config target="NSCameraUsageDescription" file="*-Info.plist" mode="merge">
<string>To scan barcodes</string>
</edit-config>
```
## Windows quirks ##

@@ -151,0 +153,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc