How sync is triggered

Sync can be automated or manual on the Android app. This article talks about the different triggers of sync

Sync data between Avni Client and Server

Sync between Avni Client and Server is initiated by the Client and could be of following types:

Manual Sync (user triggered, upload and fetch data)

The user taps the sync icon at the top of the Home screen. The app uploads what is on the phone and downloads what is new for the user.

Automatic Sync

Background sync is off for every user by default. To turn it on, open More, tap the account name at the top (it says Edit Settings underneath), and switch Disable Auto Sync off. Until then, the app sends data when the user taps the sync icon at the top of the Home screen.

Settings screen of a new user: Disable Auto Sync on, Disable Dashboard Auto Refresh off, Track Location off

When it is on, see Internal details of Avni sync for how it decides when to run. The two forms:

  1. Complete Sync (Both upload and fetch data)
  2. Partial Sync (Only upload of data)