Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The offline metadata file present on the server decides whether the offline Bahmni Connect app in the devices needs to be upgraded or not.

...

  1. Forced update - this means that installed version in device is not compatible with server and it needs to be upgraded for the data to get synced to server. In this case, each time the app tries to sync data to the server, it shows a popup which has  link/button to upgrade the app.
  2. Non-forced update - this means that installed version in device is still compatible with server and it need not be upgraded immediately to get data synced. In this case, sync happens smoothly even if app is not upgraded.

Android App

For android app, the 'latestAndroidAppUrl' in the offlineMetadata.json contains the url of latest apk released. On clicking on Update button, the apk is downloaded from the specified url in offlineMetadata.json and installed automatically.

Chrome App

For Chrome app, the 'latestChromeAppUrl' in the offlineMetadata.json contains the url from where the chrome extension tar file can be downloaded. On clicking the Update button, the link with the url is shown so that extension can be downloaded and installed manually.

...