How to periodically sync Android devices?
A device can be synced with Hexnode either automatically at periodic intervals or manually by the owner of the device. The sync device action forces the device to check-in with the MDM server. When the device checks in all the pending actions and policies associated are synchronized with the MDM app on the device. Frequently synchronizing the device with the MDM console helps to reduce the waiting time for the policy and action association. The scheduled automatic sync is initiated from the MDM portal, whereas the manual sync has to be initiated from the device.
Sync Device Automatically
Periodic syncing of Android/Android TV OS devices can be enforced either via the Hexnode Admin settings or via a policy. The sync configuration set up via the Admin settings is applicable for all the deployed Android devices, whereas the configurations set up via the policy will only be associated with the selected set of devices.
To automatically sync your Android device at periodic intervals of time,
Method 1: Set up Policy
- On your Hexnode MDM console, navigate to Policies.
- Create a new policy by clicking New Policy or select an existing one. If you are creating a new policy, provide a suitable policy name and description.
- Head on to Android > Periodic Sync and click on Configure.
- Select either Background service or Foreground service as the Periodic sync behavior.
- Go to Policy Targets and associate the policies with the required Android devices, users, groups, or domains.
- Click on Save.
Method 2: Configure Hexnode Admin Settings
- Login to your Hexnode MDM console.
- Go to Admin > General Settings.
- Scroll down to Periodic Sync (Android).
- Set the Periodic sync behavior as either as Background service or Foreground service.
- Click on Save.
If the battery saver or data saver modes are enabled on the device, running periodic sync as a background service will not synchronize the Android devices with the Hexnode server. This disrupts the association of actions and policies pushed via Hexnode.
Running the periodic sync as a foreground service resolves disruptions in the policy and action association. It ensures the synchronization of Android devices with Hexnode servers at all times, even if the battery saver and data saver modes are enabled on the device. But this does come with higher battery consumption and a non-dismissible notification on the device.
It is recommended to set the periodic sync as a foreground service and is enabled by default.
Sync devices Manually
Users can manually initiate a sync action from the Hexnode MDM/Hexnode For Work/Hexnode Notifications app installed on the devices by clicking on the sync button. This would send all the device and network-related information to the Hexnode portal.
Disable Battery Optimization
If battery optimization is turned on for the Hexnode app on the device, the background sync may not work as expected. Therefore, it is the best practice to turn off battery optimization for the Hexnode MDM or Hexnode for Work app on the Android devices running periodic sync as a background service.
However, if the user has turned on battery optimization for the Hexnode app or if it isn’t disabled in the first place, you can prompt the users to do so using Hexnode.
To prompt users to disable battery optimization for the Hexnode app,
- Login to your Hexnode MDM console and navigate to Admin > General Settings.
- Scroll down to Battery Optimization (Android).
- Enable the checkbox Prompt users to disable battery optimization for Hexnode MDM and Hexnode for Work apps.
- Scroll down and click on Save.