Dynamic Lockdown. Hide "apps" in lockscreen

Solved
ON
Ola Nordenfelt
Optiscan AB

Hi

I am using the Dynamic Lockdown in SOTI 15.5.1
We have TC52x devices (Android 11) and we want the user to be able to access "Zebra Volume Controls" to set the scanner beep volume. When you press volume control, a button appear, and if you click that you can access these settings.
But the lockdown semes to block the "Zebra Volume Controls".
To solve it I can place a “dummy app” in the lockscreen containing the activity name:  “com.zebra.zebravolumecontrol3/.ZVCPanelActivity”.
Then it works to access this menu in lockscreen.
But I wish to hide this “dummy app” in the lockdown screen.

In earlier html templates I could solve this by editing a section in the html like below.
And the "dummy app" would not be visible.

</td>
<td align="center" valign="middle">
        <a href="<MCLink4>">                                                                                                                     
             <img src="<MCDispimg4>" onerror="this.style.display='none'"/>
             <font color="0004FF">
      <!--   <div class="txt"><MCDISP4></div>  --!> 
         </a>
</td>

 Is it possible to do this in the Dynamic Lockdown template?

3 years ago
SOTI MobiControl
ANSWERS

In the dynamic lockdown you can add a else.if condition. Just add the bold part in the Script.

So in the device control if the name of the app start with hide, so the app will be hide in the lockdown but the package ID will be available if other app need it.

Example:

                    else if(p.toLocaleLowerCase().startsWith("logo")) {
                        logoImage.push({
                            link: A,
                            image: o
                        });
                    }
                    else if(p.toLocaleLowerCase().startsWith("hide")) {
                    null;
                    }
                   
                    else if(p != null && p != "" && !p.includes("MCDisp")) {
                        apps.push({
                            name: p,
                            link: A,
                            image: o
                        });
                    }
 
Regards
Solution
ON
Ola Nordenfelt
a year ago

Hi
That worked perfectly.
Thank you very much.
Regards

RS
Rafael Schäfer
3 years ago
ON
Ola Nordenfelt
3 years ago

Hi Rafael  Ok, I see your's is formatted differently than mine. Maybe It works better with your's

RC
Raymond Chan Diamond Contributor
3 years ago

Hi Ola,

The dynamic template given in Soti MobiControl has many limitations, and are not documented in details, and are not coded or formatted in such a way for easy understanding   From some of the comments  included, normal users are not supposed to modify anything outside a small section intended for defining various configurable parameters supported.  I myself won't waste time to dive in the obfuscated javascript codes to look further.   With standard html/CSS/javascript used for defining the MobiControl kiosk layout to be rendered, there can be unlimited number of different ways to make a dynamic template.  I thus have evolved my own set of dynamic templates, each optimized to have more configurable features, ever since the era of MobiControl v11.x.

In your case, if you have to use the old trick for your Zebra devices,  and do not have the expertise to understand and modify any dynamic template, then the simplest solution is to resort to using the old template.  

Maybe if you are lucky enough, the original Soti designer of the dynamic template can support your use case directly in this forum, providing more information or even enhancing his/her dynamic template further to benefit everyone here.

ON
Ola Nordenfelt
3 years ago

Hi Thank you for your answer. I think I got it to work. But it looks like it only works if it is the last app. But as Raymond ponts out It could be tricky to understand this code and I am no expert. Anyway, thank you for helping.     

ON
Ola Nordenfelt
3 years ago

Hi Raymond  Thank you for feedback. And I agree, sometimes it may be better to use my old templates that I know well if I need to make special settings.