Do you want the users who are under the tenant
foo1.com to download and install an Android agent that is different from the users under the tenant
foo2.com? This document guides you on how to change the Android agent download URL among tenants.
Follow the steps given below:
- Make a copy of the
cdmf.unit.device.type.android.type-viewdirectory that is in the
<IOTS_HOME>/repository/deployment/server/jaggeryapps/devicemgt/app/unitsdirectory in the same directory.
- Rename the newly copied file as follows:
For example, if your tenant domain is
foo.comthe directory name needs to be
- Update the following files in the
type-view.jsfile and replace all the content in it with the following configurations:
enrollmentURLwith the URL to download the agent.
type-view.jsonfile and replace all the content in it with the following configurations:
Why am I extending this unit?
For this tutorial only the Android agent download URL changes. All the other content of the Android agent is the same. Therefore, all you need to do is extend the existing
- Sign in to WSO2 IoT Server's Device Management console. The username needs to be in the following format
- Now, try enrolling an Android device and you see that the agent download URL has changed.