Lockdown : apk version displayed

Solved
BR
Bruno Rame Bronze Contributor
COPPERNIC

Is it possible to display in the lockdown the version of the APK deployed ( Launch://........ ) ?

7 years ago
Android
ANSWERS
MD
Matt Dermody Diamond Contributor
7 years ago

The macro that you'll want to leverage is %MCCustomData:YOURPROPERTYNAME% . This can be inserted in the HTML of the lockdown template wherever you see fit. I believe you could even make the name of the application be:

YOURAPPNAME %MCCustomData:YOURPROPERTYNAME%

That way you'll see App name + version number side by side.

Solution
RC
Raymond Chan Diamond Contributor
7 years ago

there is of course no automatic mechanism in html/CSS standard to get your requested information displayed if the template handles different device models with different version of the same apps installed.  However, if the app version is the same for all devices targeted by the template, you can then put the known version information in the "Display Name" field of the lockdown menu item, or directly in a customized html template.

MD
Matt Dermody Diamond Contributor
7 years ago

If the app is being installed via Package you can bundle in an .ini file that contains a version number corresponding to the APK version and then use Custom Data to extract that version value from the device. That Custom Data can then be displayed on the lockdown menu. It's a little convoluted, but works. 

BR
Bruno Rame Bronze Contributor
7 years ago

Thanks Mike for your help. Can you please give me more details to do that, I'm not sure it will work with my configuration.

BR
Bruno Rame Bronze Contributor
7 years ago

Matt,

I created the ini.file and have now the version of my apk with custom data configuration. What is the command to insert in my lockdown to display this custom data ?

Thanks for your help

BR
Bruno Rame Bronze Contributor
7 years ago

Thank you

Finaly we simply used a cutom attribut to manage the display of the apk version. I keep your informations about the custom data for the future, I'm sure it could help me.