I use Android Enterprise Devices (Zebra TC57 + TC27) on MobiControl 15.1.
I want to open a defined URL with chrome after clicking the OK button.
This script just opens chrome, because i cant find a way to define a URL...
var buttonLabels = ['OK'];
mobicontrol.message.createInfoDialog('Text for Messagebox').withButtons(buttonLabels[0]).withCallback(onConfirm).show();
function onConfirm(result) {
if (result.buttonIndex != null) {
mobicontrol.log.info('The OK button was clicked');
mobicontrol.app.start('com.android.chrome');
}
}
This old sendintent script works fine but there's no way to put this in a showmessagebox.
sendintent -a "https://google.com#Intent;action=android.intent.action.VIEW;end"