|
|
|
@ -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();
|
|
|
|
|