Skip to content

Commit

Permalink
readme changes and bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sachin Shankar committed Aug 23, 2019
1 parent b962fa9 commit c2ffd2b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ cordova plugin add @datalogic/cordova-plugin-datalogic
ionic cordova plugin add @datalogic/cordova-plugin-datalogic
```

***or,*** if you are using PhoneGap CLI, this phonegap command:

```bash
phonegap plugin add @datalogic/cordova-plugin-datalogic
```

## Sample apps

Several Ionic sample applications are provided to demonstrate using the plugin. You can find them here: https://github.com/datalogic/ionic-samples
Expand Down
6 changes: 3 additions & 3 deletions src/android/BarcodeManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public void onPause(boolean multiTasking) {
private boolean pressTrigger(CallbackContext callbackContext){
if(decoder != null){
try{
if (decoder.pressTrigger() == DecodeException.SUCESS) {
if (decoder.pressTrigger() == DecodeException.SUCCESS) {
PluginResult result = new PluginResult(PluginResult.Status.OK, "Successfully pressed the trigger");
callbackContext.sendPluginResult(result);
return true;
Expand All @@ -148,7 +148,7 @@ private boolean pressTrigger(CallbackContext callbackContext){
Log.e(LOGTAG, "Error while pressing the trigger", e);
}
}
PluginResult result = new PluginResult(PluginResult.Status.ERROR, "Error while pressing the trigger " + e.getMessage() );
PluginResult result = new PluginResult(PluginResult.Status.ERROR, "Error while pressing the trigger");
callbackContext.sendPluginResult(result);
return false;
}
Expand All @@ -165,7 +165,7 @@ private boolean releaseTrigger(CallbackContext callbackContext){
Log.e(LOGTAG, "Error while releasing the trigger", e);
}
}
PluginResult result = new PluginResult(PluginResult.Status.ERROR, "Error while releasing the trigger " + e.getMessage() );
PluginResult result = new PluginResult(PluginResult.Status.ERROR, "Error while releasing the trigger");
callbackContext.sendPluginResult(result);
return false;
}
Expand Down

0 comments on commit c2ffd2b

Please sign in to comment.