# getBuildInfo

**URL:** <https://forum.servoy.com/t/getbuildinfo/20296>\
**Category:** Questions\
**Created:** [August 17, 2020, 2:25pm UTC](https://forum.servoy.com/t/getbuildinfo/20296 "2020-08-17T14:25:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nic](https://avatars.discourse-cdn.com/v4/letter/n/45deac/32.png) [@nic](https://forum.servoy.com/u/nic)\
**Post date:** [August 17, 2020, 2:25pm UTC](https://forum.servoy.com/t/getbuildinfo/20296/1 "2020-08-17T14:25:12Z")

</div>

I am using phonegap version 1.0.9 on Servoy 2020.03.1 and I am trying to get the buildinfo from the svyphonegapPhonegap plugin. Here is my code:  
**scopes.globals.glb\_buildinfo = plugins.svyphonegapPhonegap.getBuildInfo()**  
I should receive an object with a large array of values, but I receive an object with an array length of 1 and the content is undefined.  
Does anyone has an answer for me

---

<div class="post-metadata">

**Author:** ![tnguyen](https://avatars.discourse-cdn.com/v4/letter/t/6f9a4e/32.png) [@tnguyen](https://forum.servoy.com/u/tnguyen)\
**Post date:** [August 17, 2020, 3:14pm UTC](https://forum.servoy.com/t/getbuildinfo/20296/2 "2020-08-17T15:14:34Z")

</div>

Hi,

Is your code is executed within the callback of the onReady event from solutionopen method?

function onSolutionOpen(arg, queryParams) {  
//initialize phonegap module  
scopes.phonegap.onSolutionOpen(arg,queryParams, **onReadyCallback** );

}

function **onReadyCallback** (){  
//device is ready, get information from a plugin  
application.output(**plugins.svyphonegapPhonegap.getBuildInfo()**);  
}

---

<div class="post-metadata">

**Author:** ![nic](https://avatars.discourse-cdn.com/v4/letter/n/45deac/32.png) [@nic](https://forum.servoy.com/u/nic)\
**Post date:** [August 18, 2020, 7:04am UTC](https://forum.servoy.com/t/getbuildinfo/20296/3 "2020-08-18T07:04:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tnguyen](https://avatars.discourse-cdn.com/v4/letter/t/6f9a4e/32.png) [@tnguyen](https://forum.servoy.com/u/tnguyen)\
**Post date:** [August 18, 2020, 2:55pm UTC](https://forum.servoy.com/t/getbuildinfo/20296/4 "2020-08-18T14:55:06Z")

</div>

Which device(s) are you testing on?  
How are you creating the .apk or .ipa?  
Are you using the following link to create the template?  
[https://phonegaputils.servoy.com/soluti … index.html](https://phonegaputils.servoy.com/solutions/phonegapUtils/index.html)

---

<div class="post-metadata">

**Author:** ![nic](https://avatars.discourse-cdn.com/v4/letter/n/45deac/32.png) [@nic](https://forum.servoy.com/u/nic)\
**Post date:** [August 19, 2020, 9:45am UTC](https://forum.servoy.com/t/getbuildinfo/20296/5 "2020-08-19T09:45:01Z")

</div>

I am testing on a Samsung S7 Android device. I created the config.xml with the Servoy utility.

---

<div class="post-metadata">

**Author:** ![tnguyen](https://avatars.discourse-cdn.com/v4/letter/t/6f9a4e/32.png) [@tnguyen](https://forum.servoy.com/u/tnguyen)\
**Post date:** [August 19, 2020, 3:48pm UTC](https://forum.servoy.com/t/getbuildinfo/20296/6 "2020-08-19T15:48:42Z")

</div>

Can you send me a private message with the config.xml used?

Also, do any of the other phonegap functions work? Such as the back button or other native integrations ?

I would like to review that item over.
