MeData Service
MeData Service is the core of the Mobile SDK. It collects MeData values from various sources according to the MeData Definitions managed on Orchestrator. Most of other Mobile SDK services are triggered or effected by MeData Service.
Mobile SDK performs background network access to fetch MeData Definitions from DataSapien Mobile Backend.
Data Vault
MeData collected by Mobile SDK is allways stored on user device. Data is stored in a platform encrypted and sandboxed data base that is called the Data Vault
. MeData Service provides methods to query and consume stored MeData in Data Vault.
MeData Collection
Mobile SDK collects data from various sources: Native
, external APIs via Scripts
, from VC (Verifiable Credentials)
and Question
answers.
- For
Native
sourced collection, MeData Service will execute the code it provides out of the box - For
Script
sourced collection; MeData Service will execute the script authered on Orchestrator - For
VC
sourced collection, MeData Service will access targeted VC from Wallet Service - For
Question
sourced collection, some kind of UI interaction is required. This UI can be anything from a dedicated screen that displays a list of questions or simple a popup. Mobile SDK provides its own UI or the data required to display yours in your host app..
MeData Service Functions
To access MeDataService
functions; get its instance from DataSapien
object: DataSapien.getMeDataService()
.
MeData Definition functionss:
- fetchMeDataDefinitions
- getMeDataDefinitions
- findMeDataDefinitions
- ...
- Documentation pending
MeData value (Data Vault) functions:
- collectMeDataValues
- getMeDataValues
- findMeDataValues
- saveMeDataValue
- deleteMeDataValue