Combining Legacy Scripts and JavaScript

JD
John Doe
Eisen Karl GmbH

Hello,

is it possible to combine legacy scripts & JavaScript functionality?

Also how would one place a javascript file on the lockdown?

Same as Script:\\\Path\to\Script.cmd ?

I want to add a "button" to our lockdown where its possible to wipe an app, but i want to ask for a simple pin code first so the normal user can not wipe the app while its in use.

2 years ago
Android Scripting
ANSWERS
RS
Rafael Schäfer
2 years ago

You can't combine them in "one script".

Even i don't think following is something you are looking for, just to keep it in mind:
If you make a package you can add multiple scriptfiles containing (seperated for each language) the code you want.

Regarding adding script to homescreen i think you are right but maybe you have to use .js for a javascript, i think .cmd is for legacy only but i could be wrong on that because never used yet.

JD
John Doe
2 years ago

After reading your post i had an idea about how this would be achievable,

Adding the Legacy Script into the Lockdown is totally possible but i can leverage the "Lockdown" JS to somewhat secure it with a pin without havin to integrate that directyl in the script itself, because also combining legacy and mobicontrol javascript wont work. The Pin would be contained in the lockdown html and js.

I will try this out sooner or later.

MD
Matt Dermody Diamond Contributor
2 years ago
RS
Rafael Schäfer
2 years ago

Thanks again for verify my guess.

G
GPMOD@SOTI
2 years ago

Hi John,

Thanks for posting on SOTI Pulse and thanks Rafael and Matt for responding to the post.

Have you had a chance to test that workaround from your side?

Did it resolve your query, if not I would request you open a support case from here

Thank you. 

Kind regards,

Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |