Accessing SOTI Device ID from Android App

Hello everyone,

Is there a way to programmatically retrieve the SOTI Device ID from within an Android application running on the same device?

6 months ago
Android
ANSWERS
EG
Edgar Gomez
6 months ago

Hi,

It is possible with agent 2025.1 JavaScript API

See the following link where it shows how to achieve what you want:

https://www.soti.net/mc/help/javascriptapi/en/tutorial-intents.html

RC
Raymond Chan Diamond Contributor
6 months ago

Before support of intent in Javascript API v1.8 for MobiControl v2025.1+  device agent, I used to advise my customers to use "sendintent"  MobiControl legacy script command to send intent with Device-ID macro as the intent argument to apps that requires the Device-ID information.

This  "sendintent" legacy script command has been around for over ten years.

T
TLMOD@SOTI
6 months ago

Hi Pascal,

Thanks for posting on SOTI pulse. Thanks Raymond and Edgar for responding to the post, your expertise and willingness to help are greatly appreciated!

Has your query been resolved? If not, or if you have any additional concerns, please don't hesitate to reach out. We are dedicated to providing assistance and support.