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'?>
|
<?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>
|
<name short="PH">PackageHelper</name>
|
||||||
<description>
|
<description>
|
||||||
Assistant app for door-to-door package delivery.
|
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",
|
"name": "com.netsyms.packagehelper",
|
||||||
"version": "1.6.2",
|
"version": "1.6.3",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -629,6 +629,12 @@
|
|||||||
"resolved": "https://registry.npmjs.org/cordova-plugin-statusbar/-/cordova-plugin-statusbar-2.4.3.tgz",
|
"resolved": "https://registry.npmjs.org/cordova-plugin-statusbar/-/cordova-plugin-statusbar-2.4.3.tgz",
|
||||||
"integrity": "sha1-zFV672bCdITg9/BFAEBA0DMh+C0="
|
"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": {
|
"cordova-serve": {
|
||||||
"version": "3.0.0",
|
"version": "3.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/cordova-serve/-/cordova-serve-3.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/cordova-serve/-/cordova-serve-3.0.0.tgz",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "com.netsyms.packagehelper",
|
"name": "com.netsyms.packagehelper",
|
||||||
"displayName": "PackageHelper",
|
"displayName": "PackageHelper",
|
||||||
"version": "1.6.3",
|
"version": "1.6.4",
|
||||||
"description": "Assistant app for door-to-door package delivery.",
|
"description": "Assistant app for door-to-door package delivery.",
|
||||||
"product_string": "PackageHelper",
|
"product_string": "PackageHelper",
|
||||||
"main": "www/index.html",
|
"main": "www/index.html",
|
||||||
@ -31,7 +31,8 @@
|
|||||||
"cordova-plugin-whitelist": {},
|
"cordova-plugin-whitelist": {},
|
||||||
"phonegap-plugin-barcodescanner": {
|
"phonegap-plugin-barcodescanner": {
|
||||||
"ANDROID_SUPPORT_V4_VERSION": "27.+"
|
"ANDROID_SUPPORT_V4_VERSION": "27.+"
|
||||||
}
|
},
|
||||||
|
"cordova-plugin-velda-devicefeedback": {}
|
||||||
},
|
},
|
||||||
"platforms": [
|
"platforms": [
|
||||||
"browser",
|
"browser",
|
||||||
@ -50,6 +51,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"cordova-ios": "^6.1.1",
|
"cordova-ios": "^6.1.1",
|
||||||
"cordova-plugin-inappbrowser": "^4.1.0",
|
"cordova-plugin-inappbrowser": "^4.1.0",
|
||||||
|
"cordova-plugin-velda-devicefeedback": "0.0.2",
|
||||||
"phonegap-plugin-barcodescanner": "^8.1.0"
|
"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) {
|
router.on("routeChange", function (newRoute) {
|
||||||
console.log("Info", "Navigating to ", newRoute.path);
|
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!");
|
app.dialog.alert("You can't scan barcodes with this device.", "Sorry!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var doHapticFeedback = function () {
|
||||||
|
console.log("Haptics not enabled.");
|
||||||
|
}
|
||||||
|
|
||||||
var scanningBarcode = false;
|
var scanningBarcode = false;
|
||||||
|
|
||||||
var getLocation = function (success, error) {
|
var getLocation = function (success, error) {
|
||||||
@ -159,6 +163,12 @@ function initCordova() {
|
|||||||
// Make sure the status bar color is set properly
|
// Make sure the status bar color is set properly
|
||||||
applyColorTheme();
|
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
|
// start watching user position after everything's done, hopefully this will make it work
|
||||||
// with ios
|
// with ios
|
||||||
setupPositionWatcher();
|
setupPositionWatcher();
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "PackageHelper",
|
"name": "PackageHelper",
|
||||||
"version": "1.6.3",
|
"version": "1.6.4",
|
||||||
"main": "index.html",
|
"main": "index.html",
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
var SETTINGS = {
|
var SETTINGS = {
|
||||||
cacheversion: "v1.6.3_0",
|
cacheversion: "v1.6.4_0",
|
||||||
activitylog_maxlength: 500,
|
activitylog_maxlength: 500,
|
||||||
maptileurls: {
|
maptileurls: {
|
||||||
liberty: {
|
liberty: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user