by nic » Tue Aug 18, 2020 9:04 am
Yep, here's my complete code :
scopes.phonegap.onSolutionOpen(arg, queryParams, onReadyCallback);
/**
* @properties={typeid:24,uuid:"9EC15C4A-7709-4E94-9EB4-9596C77F6098"}
*/
function onReadyCallback(){
//device is ready, get information from a plugin
scopes.globals.glb_device = plugins.svyphonegapDevice.getDeviceInfo()
application.output('1 UUID=' + scopes.globals.glb_device.uuid, LOGGINGLEVEL.INFO)
scopes.globals.glb_device_uuid = plugins.svyphonegapDevice.getDeviceInfoProperty('uuid')
application.output('2 UUID=' + scopes.globals.glb_device_uuid, LOGGINGLEVEL.INFO)
scopes.globals.glb_buildinfo = plugins.svyphonegapPhonegap.getBuildInfo()
application.output('1 buildinfo=' + scopes.globals.glb_buildinfo, LOGGINGLEVEL.INFO)
application.output('2 buildinfo=' + scopes.globals.glb_buildinfo.toString(), LOGGINGLEVEL.INFO)
application.output('3 buildinfo=' + scopes.globals.glb_buildinfo.length, LOGGINGLEVEL.INFO)
application.output('4 buildinfo=' + scopes.globals.glb_buildinfo[1], LOGGINGLEVEL.INFO)
application.output('name=' + scopes.globals.glb_buildinfo.name, LOGGINGLEVEL.INFO)
application.output('version=' + scopes.globals.glb_buildinfo.version, LOGGINGLEVEL.INFO)
application.output('code=' + scopes.globals.glb_buildinfo.versionCode, LOGGINGLEVEL.INFO)
plugins.svyphonegapPhonegap.setOnBackMethod(onBackMethod)
plugins.svyphonegapPhonegap.setOnPauseMethod(onPauseMethod)
plugins.svyphonegapPhonegap.setOnResumeMethod(onResumeMethod)
}
I get an object with an array of 1, but content is undefined
Nic