phonegap-plugin-barcodescanner
Advanced tools
Comparing version 7.0.4 to 7.1.0
{ | ||
"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 @@ } |
@@ -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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
6611028
190
0