Disable notification sound by script

BS

Hello there

We want to disable the notification sound on all AE Kiosk devices.

MobiControl 15.3

Is this possible by script?

Thank you for the help and best Regards

Beni

3 years ago
MobiControl - Android Script Engine
ANSWERS
RS
Rafael Schäfer
3 years ago

I'm not confident with Java-Script but maybe someone else. They seem just implemented that in the current agent version:

https://docs.soti.net/soti-mobicontrol/android-agent/release-notes/151/android-classic-agent-maintenance-releases/

But it makes trouble here currently (agent seem to have no file access), so be careful using it.

RC
Raymond Chan Diamond Contributor
3 years ago

Hi Benjamin,

I really don't know what Rafael was talking about, nor the reason why he mentioned javascript.

Whether or not there is any solution for your case actually depends heavily on your device brand, model, firmware and device agent version/build numbers.  Please provide sufficient details.

RS
Rafael Schäfer
3 years ago

@Raymond:

All AE Kiosk devices means no manual handling to me, so they want use script or profile ideally.

There's no profile afaik, agree?

But i just saw following on the release notes of the new Agent Version (the link i posted before):

New JavaScript Options

JavaScript scripting options have been expanded with the following:

  • Read and set the device volume for notifications, alarms, music playback, phone rings and voice calls, and press the device volume keys

Because of that i was talking about that...so there's a reason if you would have taken a look into that...

There even could be a possibility to do that maybe with an oem app provided by the manufacturer of the device(s) but if it's just a single script vs. installing and configuring an app, i would prever the script solution (manufacturer independent) if it's working.

BS
Benjamin Spahr
3 years ago

Hi Guys

Thank you for your answers.

@Raymond: we are using Samsung XCOver 4s Devices and Ascom Memor 10 devices, both with Android 10.

At the moment we have a variety of device agents, so we are upgrading mobicontrol to have the same version of agents on all devices.

@Rafael: The option with Javascript sounds really good. You haven't an example of such an script by any chance?

Best Regards

Beni

RS
Rafael Schäfer
3 years ago

No, because of that, i wrote in my first answer "I'm not confident with Java-Script but maybe someone else."

BS
Benjamin Spahr
3 years ago

sorry somehow missed that info.

so hopefully someone has more experience in java script as we do :)

RC
Raymond Chan Diamond Contributor
3 years ago

According to the latest MobiControl javascript documentation found online, there is a new method function 

setNotificationVolume() for Version 1.3 (API level 4) in the mobicontrol.audio  namespace.

BS
Benjamin Spahr
3 years ago

Hi Raymond

Thank you very much.

I will try this as soon as we have the latest AE Agent.

Best Regards

Beni