How to update an app in the field

After creating your Private Repository and the initial installation of your application the question of updating your app quickly arises. With your Device Hub it is a matter of seconds for one device or a whole group of devices to be updated.

This guide shows you step-by-step how to achieve an app update in the field or your lab.

Note: In order for this command to be successfully executed, MDM has to be enabled on the device, the device has to be online, and the device group needs premium services attached to it.

  1. Access the private repository you have created
    e.g. https://apps.emteria.com/fdroid/<companyname>
  2. Upload the new version of your application in the repo folder.
    The reference in the root folder will automatically update after your upload. The link consists of the package name and points to the package with the highest version code.
    Update-app-remote-1-repo
    Note: We recommend adding the version code in the filename of the uploaded apk to avoid potential caching issues.
  3. Navigate to the MDM overview.
    Log into your Device Hub > Devices.
    navigate_to_devices
  4. Select the device or the device group where you want to update your app.
  5. Navigate to the Commands tab.
    commands
  6. Click Add.
  7. In the opened window navigate to the Commands tab and select the command type Install package from the drop-down list.
    Update-app-remote-3-install-package
  8. Enter the download URL of your new app version.
    e.g.: https://apps.emteria.com/fdroid/<companyname>/repo/<appname>.apk
  9. Enter the Application package and the Version code.
    Note: If you are unsure about these values, you can find the Tools button in the bottom right. There you can choose your app and all app information is extracted from it, amongst others the package and version.
    Read the following tutorial for a quick explanation on how to extract the necessary information.
  10. After filling in the fields click on Create to perform the update of your app.
    Note: The download and installation of your application can take a few minutes on your device, depending on the size of your app and available bandwidth. 
    Update-app-remote-4-install-package-create