Page 1 of 1

Display version details from App Settings

Posted: Wed Jul 09, 2014 1:12 am
by Bob Fludder

Under project there are a number of App Settings. Android binary has a couple where you can input the version code & version name. I have a dialog page that displays a version. Is there a way of displaying the version details from the app setting in the dialog or do I have to keep remembering (rather forgetting) to change dialog manually ?


Display version details from App Settings

Posted: Wed Jul 09, 2014 2:24 am
by Yurii Orishchuk

Hi Bob,

Unfortunatly you can not use information from "android binary" app settings tab.

So you need to implement this logic your self.

I can suggest you two ways:

1 Create new JS asset and fill it with following code:

pre

self.appInfo = {
version: "123.123",
build: "345.345"
};

/pre

Then you can access to this info with following code:

pre

//Get version.
var version = self.appInfo.version;

//Get build.
var build = self.appInfo.build;

/pre

2 Create some collection in your DB. With collumns "fieldName" and "fieldValue" and request this collection when you need info(for example when your dialog page will be displayed).

Regards.


Display version details from App Settings

Posted: Wed Jul 09, 2014 4:00 am
by Bob Fludder

Thanks. Worth a try I guess. Still have to remember to update it... but can put somewhere in the Javascript so I don't miss it as easily.