Add haptic feedback, bump version
This commit is contained in:
parent
5a137607a0
commit
1462417637
@ -1,5 +1,5 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<widget id="com.netsyms.PackageHelper" version="1.6.3" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
||||
<widget id="com.netsyms.PackageHelper" version="1.6.4" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
||||
<name short="PH">PackageHelper</name>
|
||||
<description>
|
||||
Assistant app for door-to-door package delivery.
|
||||
|
8
package-lock.json
generated
8
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "com.netsyms.packagehelper",
|
||||
"version": "1.6.2",
|
||||
"version": "1.6.3",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
@ -629,6 +629,12 @@
|
||||
"resolved": "https://registry.npmjs.org/cordova-plugin-statusbar/-/cordova-plugin-statusbar-2.4.3.tgz",
|
||||
"integrity": "sha1-zFV672bCdITg9/BFAEBA0DMh+C0="
|
||||
},
|
||||
"cordova-plugin-velda-devicefeedback": {
|
||||
"version": "0.0.2",
|
||||
"resolved": "https://registry.npmjs.org/cordova-plugin-velda-devicefeedback/-/cordova-plugin-velda-devicefeedback-0.0.2.tgz",
|
||||
"integrity": "sha1-ZCnduHXMrCIEpAqA6juzLAovXRo=",
|
||||
"dev": true
|
||||
},
|
||||
"cordova-serve": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/cordova-serve/-/cordova-serve-3.0.0.tgz",
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "com.netsyms.packagehelper",
|
||||
"displayName": "PackageHelper",
|
||||
"version": "1.6.3",
|
||||
"version": "1.6.4",
|
||||
"description": "Assistant app for door-to-door package delivery.",
|
||||
"product_string": "PackageHelper",
|
||||
"main": "www/index.html",
|
||||
@ -31,7 +31,8 @@
|
||||
"cordova-plugin-whitelist": {},
|
||||
"phonegap-plugin-barcodescanner": {
|
||||
"ANDROID_SUPPORT_V4_VERSION": "27.+"
|
||||
}
|
||||
},
|
||||
"cordova-plugin-velda-devicefeedback": {}
|
||||
},
|
||||
"platforms": [
|
||||
"browser",
|
||||
@ -50,6 +51,7 @@
|
||||
"devDependencies": {
|
||||
"cordova-ios": "^6.1.1",
|
||||
"cordova-plugin-inappbrowser": "^4.1.0",
|
||||
"cordova-plugin-velda-devicefeedback": "0.0.2",
|
||||
"phonegap-plugin-barcodescanner": "^8.1.0"
|
||||
}
|
||||
}
|
@ -87,6 +87,10 @@ $(document).keyup(function (e) {
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on("mousedown", ".hapticbtn,.input-clear-button,.button,.link", function () {
|
||||
doHapticFeedback();
|
||||
});
|
||||
|
||||
router.on("routeChange", function (newRoute) {
|
||||
console.log("Info", "Navigating to ", newRoute.path);
|
||||
});
|
||||
|
@ -30,6 +30,10 @@ var scanBarcode = function (success, error) {
|
||||
app.dialog.alert("You can't scan barcodes with this device.", "Sorry!");
|
||||
}
|
||||
|
||||
var doHapticFeedback = function () {
|
||||
console.log("Haptics not enabled.");
|
||||
}
|
||||
|
||||
var scanningBarcode = false;
|
||||
|
||||
var getLocation = function (success, error) {
|
||||
@ -159,6 +163,12 @@ function initCordova() {
|
||||
// Make sure the status bar color is set properly
|
||||
applyColorTheme();
|
||||
|
||||
if (typeof device != "undefined" && device.platform == "Android") {
|
||||
doHapticFeedback = function () {
|
||||
window.plugins.deviceFeedback.acoustic();
|
||||
}
|
||||
}
|
||||
|
||||
// start watching user position after everything's done, hopefully this will make it work
|
||||
// with ios
|
||||
setupPositionWatcher();
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "PackageHelper",
|
||||
"version": "1.6.3",
|
||||
"version": "1.6.4",
|
||||
"main": "index.html",
|
||||
"license": "MPL-2.0",
|
||||
"dependencies": {
|
||||
|
@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
var SETTINGS = {
|
||||
cacheversion: "v1.6.3_0",
|
||||
cacheversion: "v1.6.4_0",
|
||||
activitylog_maxlength: 500,
|
||||
maptileurls: {
|
||||
liberty: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user