jahbini / researchPad

Cordova based app for iPad for gesture and BLE capture for medical research.
1 stars 0 forks source link

Client app to ensure logon.js seems to be functioning as expected #231

Open MrSniffer opened 4 years ago

MrSniffer commented 4 years ago

logon should wake up when the main line issues "systemEvent:externalTimer:show". by the time the main line issues "systemEvent:protocol:active" and event in the form of "systemEvent:LogonVersion:xxxxxx" must already have been seen and queued.

If the LogonVersion event was not yet seen, put up a dialog box about the problem and after the user acknowledges, logout and then reload the app cleanly.

jahbini commented 4 years ago

Please use the following syntax in logon.js:

walkNow = function() { // call me each tinme at the beginning of each walk Pylon.setLogonVersion("JIM-TEST-3-3a-2020") // record which version of logon is running shutDown() // make sure all's quiet on the western front

This will set the session data items to contain "logonVersion" to whatever string you pass to Pylon.setLogonVersion.

This field is checked immediately after walkNow exits, so the mainline can put up an alert and force a restart.