Device name in URL

Hi All,

Question how do i start a webbrowser with a link in it to the device.
It would be nice, otherwise i need to config on every device the %DEVICENAME% manually in the weblink.

For example: 

kill_application org.mozilla.firefox
sendintent -a "http://xxxxxxxxxx=%DEVICENAME%#Intent;action=android.intent.action.VIEW;end"

I try this on a Zebra TC51 but i think the command kill_application is not working. 

I already tried this:
https://www.soti.net/mc/help/v14.2/en/console/reference/dialogs/agents/devicenamingmacros.html

5 years ago
Android
ANSWERS
MD
Matt Dermody Diamond Contributor
5 years ago

kill_application does not work for Android Enterprise managed Zebra devices.

As for launching a url with a macro, I've done the following successfully with a custom data macro so it should theoretically work with devicename as well. 

surf://http://firstpartofyouraddress-%MCCustomData:NAME%.restofyouraddress.com

I think your issue in trying to use the sendintent script is that everything included within the "" is considered part of that string so it is interpretted directly rather than being handled as an outside macro. 

RC
Raymond Chan Diamond Contributor
5 years ago

Enclose your MobiControl macro with double %'s in the string argument of sendintent script command. 

CK
Chris Keunen
5 years ago

Do you shedule a task for it or where do i configure this?
Because before i created i task. But it needs to trigger more than one time.