Alright, so I used the console log through weinre. With a normal scan on a barcode that returns a result, the resources tab fills the local storage variable outpan_item_name with the name of the product (the result). With a barcode it can't find, it doesn't do anything (the variable remains hidden from the local files screen under resources. I looked at the console and here is what it shows:
App successfully registered with Appery.io Push service
processMessage failed: Error: TypeError: Cannot read property 'length' of undefined
processMessage failed: Stack: TypeError: Cannot read property 'length' of undefined
at file:///android_asset/www/startScreen.js:263:54
at Object.cordova.callbackFromNative (file:///android_asset/www/files/resources/lib/cordova.js:294:48)
at processMessage (file:///android_asset/www/files/resources/lib/cordova.js
21)
at androidExec.processMessages (file:///android_asset/www/files/resources/lib/cordova.js
13)
at instrumentedCode (http://debug.appery.io/target/target-...)
processMessage failed: Message: F07 PushNotification1133664932 sInvalid action
processMessage failed: Error: TypeError: Cannot read property 'length' of undefined
processMessage failed: Stack: TypeError: Cannot read property 'length' of undefined
at eval (eval at (file:///android_asset/www/files/resources/lib/jquery/jquery-2.1.1.js:330:5), :871:54)
at Object.cordova.callbackFromNative (file:///android_asset/www/files/resources/lib/cordova.js:294:48)
at processMessage (file:///android_asset/www/files/resources/lib/cordova.js
21)
at androidExec.processMessages (file:///android_asset/www/files/resources/lib/cordova.js
13)
at instrumentedCode (http://debug.appery.io/target/target-...)
processMessage failed: Message: F07 PushNotification1133664933 sInvalid action
How do I translate this into popping up the alert that the item was not found? I even tried creating a label instead of using alert and having the label show, but that didn't work either.