Offline Mode
To deal with situations where network connectivity may be limited or unavailable, we provide an Offline Mode. This allows a job to be saved locally so that it can be submitted later once network connectivity is restored.
When Offline Mode is enabled and an API request encounters a connectivity issue, the UI will not show an error message. Instead, it will appear as a successful operation.
Enabling Offline Mode
Offline mode must be explicitly enabled. This setting will apply to all jobs.
To disable Offline Mode, simply call the method passing false
instead
Submitting an Offline Job
Once network connectivity is restored, a job previously saved in Offline Mode can be submitted to the backend for processing. A job is identified by its jobId
, so it is important to save it once a job completes in Offline Mode.
Helper Functions
Listing Jobs awaiting API submission
Returns a list of job IDs that have not yet been submitted to the backend
Listing Submitted Jobs
Returns a list of Job IDs that have been submitted to the backend for processing
File Cleanup
This will cleanup the supporting files for a job (selfies and document captures)
Last updated
Was this helpful?