How can I run the "Wifireconnect" macro from Javascript

As I understand the Wifireconnect is a macro for the legacy language of mobicontrol. But is there a way to reference it or use it in javascript instead?      

4 years ago
Android Scripting
ANSWERS
RC
Raymond Chan Diamond Contributor
4 years ago (edited 4 years ago)

As a temporary workaround while there is no direct support in MobiControl javascript, you could consider putting your required script in the pre-script of a .pcg package without any apk, and use the "install" method for the mobicontrol.packages namespace in your javascript.