Publish Applications during Device Enrollment

Working with Entgra IoT Platform

Saad Sahibjan
Entgra.io
3 min readAug 6, 2019

--

Entgra IoT Server is the successor of WSO2 IoT server that includes facilities to manage mobile devices (MDM), manage mobile applications (MAM) and IoT devices all in a single platform.

Starting from Entgra IoTs 3.5.0 applications can be pushed to devices as soon as the device is enrolled to the server. This can be simply achieved by adding a policy.

Source: Pexels

Let's see how applications can be pushed to an Android Device during device enrollment

  • Download and Unzip the Entgra IoTS pack.
  • Unzip the pack and start the server. (<entgra-iots-home>/bin/iot-server.sh)

Add applications to Publisher

Once the server is started go to https://localhost:9443/publisher/

I’ll be adding few apps to the publisher and then changing the lifecycle of apps to published state so that those apps can be pushed to the enrolled devices. Once apps are added and published it will look as below,

Entgra IoT Server — Application Publisher

Create a Policy with Enrollment Application Installation

Go to https://localhost:9443/devicemgt/ and click Add under policies. Then select Android, as we are going to push an Android app during enrollment to an Android device.

Once the Add Policy view pops up there will be a good lot of policies which can be configured to devices. In this case select ‘Enrollment Application Install’ policy. Once selected it will display the published app which can be selected to push to the device during enrollment. I’ll be selecting the ‘Timetable’ app to be pushed during the device enrollment. Once selected save and publish the policy.

Enroll an Android Device

Go to https://localhost:9443/devicemgt/ click Add under devices, select Android and scan the QR code to download the Android agent to install on the relevant device. Once the Android agent is installed, enroll the device to the Entgra IoT Server.

Entgra IoT Server — Enrollment Application Install Policy View

Once the device is enrolled, the ‘Timetable’ app which was configured to be pushed to the device during enrollment will be installed.

Android Emulator used to Entgra IoT Server

In the device view, there will be an operation ‘INSTALL_APPLICATION’ in Completed state which was triggered by the configured policy.

Entgra IoTs — Device View

When the Applications tab is selected under Device Details page, you can view the successfully installed apps of the particular device as below.

Entgra IoTS — Device Applications View

This is how simple pushing applications to devices is, during device enrollment with Entgra IoTS.

There are many more interesting features facilitated by the Entgra IoTS, contact Entgra team to learn more. We’d love to hear from you!

--

--