How to access offline database of Commcare App?

How to access offline database of Commcare App?

Hi Apoorv,

Not sure what exactly you are looking for. Though If you want to access forms saved by the user on a particular device you can see them in 'Saved Forms' section. You can go there by clicking on the menu on home screen and then selecting 'Saved Forms'. Screenshot for reference -

Thanks,

Shubham

Hello Shubham - What I am looking for is a way to access data stored in forms by a third party app.

Hi Apoorv,

CommCare has a number of on-device API's which will allow other mobile applications to request access to some types of local data for use in integration.

You can find relevant technical documentation on our wiki.

Two important notes for designing around these API's:

  1. Apps cannot access these API's by default for security reasons. Users must manually (via the Android permissions system rules) allow another app to access any data.
  2. Data in CommCare's DB is encrypted at rest and is only available as long as a user is logged into an app. The mobile app physically can't decrypt the data without the user's shared secret, so it's impossible for an app to use the API's without the user logged in.
    -Clayton