Automatically Updating the Host App
Use the DTIS SDK to automatically update your Host App on a device. Device users must opt in for Auto Updates, and the Host App must capture and send the user's Auto Update preference to DT. Auto Updates of the Host App through DT Ignite Services requires the following device conditions:
Device is connected to an unmetered connection (
NETWORK_TYPE_UNMETERED).Device is charging.
When testing your Auto Update implementation, ensure that the test device meets these conditions.
The following diagram shows the general flow for implementing automatic updates of the Host App through the DTIS SDK:
1
Initialization and Connection The Host App initializes the DTIS SDK and connects to Ignite. This action establishes a secure connection between the two components and authenticates the Host App with Ignite. For more information, see Connect to Ignite.
2
Check for Auto Update Enabled
The Host App calls the getIsAutoUpdateEnabled() method to determine whether or not the device user has opted in for automatic updates of the Host App.
3
Capture User Preference If the user has not specified their Auto Update preference, the Host App must surface a UI to capture their preference.
4
Send Auto Update Preference
Send the device user's Auto Update preference to DT using the setIsAutoUpdateEnabled() method.
5
Listen for Auto Updates If a user has opted in for Auto Updates, Ignite schedules tasks to update the Host App on devices. Ignite broadcasts notifications when the updates are scheduled and completed. For more information, see Auto Update Broadcasts.
6
Disconnect from Ignite Disconnect from Ignite Services. For more information, see Disconnect from Ignite.
Last updated

