We have a set of devices which are assigned a mixed set of apps depending on the customer. It is becoming cumbersome to have many different profiles for each set of apps. I'm looking for a way to make my template only show apps that are installed. That way if I have apps A, B and C I could do the following:
Device Group X is assigned a profile containing A
Device Group Y is assigned a profile containing A and another containing B
Device Group Z is assigned a profile containing A and another containing C
Device Groups X, Y and Z all are assigned a lockdown profile that has home screen items configured for all apps, A,B and C
I'd like the template to be able to detect if an App is installed, and if it is not, don't display a button for it.
With the javascript scripting API, I can send a script to detect this:
if (mobicontrol.app.getInstalledApp("com.google.android.apps.maps").versionCode < 15000) {
mobicontrol.log.error("The Example app is outdated; aborting script.");
(Discovered here: https://www.soti.net/mc/help/javascriptapi/en/mobicontrol.app.html) However, I can't seem to get that to run via the template. I'm guessing that the javascript API isn't actually available from the template runtime, but any pointers on how to make that work, or any other clever way to detect if an app is installed would be welcome.
All device groups