Send URL in Android Message

RS
Randy, Saputra Bronze Contributor
PT. SATYA AMARTA PRIMA

Hi everyone,

Is it possible to put URL in Send Message feature?

So basically we put URL link in the message then user can open it.

Thanks,

Randy Saputra

2 years ago
Android
ANSWERS
RC
Raymond Chan Diamond Contributor
2 years ago

To achieve what you want, you can probably send a script that includes the following sequence of actions:

1. First display a message on the device screen

2. Wait for the device end-user to press an OK button to proceed

3. Send an Android intent to open the required URL

RC
Raymond Chan Diamond Contributor
2 years ago

For step-3 mentioned in my previous post, you can use the following legacy MobiControl script as reference:

  For using DEFAULT browser on targeted device:

    sendintent -a "https://www.soti.net#Intent;action=android.intent.action.VIEW;end"

  For using Chrome browser on targeted device:

    sendintent -a "https://www.soti.net#Intent;action=android.intent.action.VIEW;component=com.android.chrome;end"

Just replace the prefx "https://www.soti.net" with your required URL.

M
MPMOD@SOTI Gold Contributor
2 years ago