iOS Offline

Get Started. It's Free
or sign up with your email address
iOS Offline by Mind Map: iOS Offline

1. Background syncing

1.1. Reevaluation Queue Storage

1.1.1. High-level Design

1.1.2. Form Original Form Latest Form Turn datatypes cache off

1.1.3. Reeval Request Data representation Serialization

1.1.4. Life Cycle Events Support for "submit" event Support for "cancel" event Support for "back" event

1.2. Required Fields Support

1.2.1. Look at "required" attribute and simulate existing behavior

1.2.2. Only do it while offline

1.3. File Upload

1.3.1. Refactoring to allow framework to capture the fileupload intent Decorator pattern File Upload value setter decorates existing value setter

1.3.2. Data representation

1.3.3. Serialization

1.4. Submission & Conflict Resolution

1.4.1. Outbox List Items stored in the Forms table Submitted (Queued for syncing) Saved (Queued for syncing?) Failed

1.4.2. Programatically setting values to Form Elements (ValueSetters). No look up, No traversal.

1.4.3. Form Editing Grid: support for finding component inside grid Populate form based on reevaluation queue containing all user interactions performed while offline. Lookup + traversal. Drop last queued "submit" action Drop all queued requests made after last "cancel" action

1.4.4. Heuristically map fields to new form

1.4.5. Toggling Old and New Forms

1.4.6. File Upload Temporary Folder Cleanup (Server Configuration)

2. Caching layer

2.1. Base Infrastructure

2.1.1. Atom Feed

2.1.2. Avatars

2.1.3. JSON Form Data

2.1.4. Records

2.1.5. Reports

2.1.6. ...

2.2. Cache Regions

2.2.1. Eviction Strategy Infrastructure

3. Background Polling

3.1. Turn datatype cache off

4. Encryption

4.1. Per account folder

4.1.1. HTTP Cache

4.1.2. File uploads

4.1.3. File downloads

4.1.4. Find other cases (possibly none)

4.2. User account info

5. Offline Awareness

5.1. Low-level offline API (networking error codes + Apple reachability API)

5.1.1. Only this reads error codes

5.1.2. All business logic related to what offline means MUST be placed here

5.2. Suppress block alerts

5.2.1. Do not read error codes explicitly

5.2.2. Annotate non-networking errors

5.3. Banner

6. Backend

6.1. Web APIs Changes

6.1.1. Include offline flag in list of actions Build locale-aware cache of offline actions

6.1.2. Server-side diff of offline form and newest form New endpoint similar to existing GET request but takes an existing rendered form as body Return 204 (No Content) OR 304 (Not modified) if forms match Return new form if forms don't match

6.2. Interface Designer Changes

6.2.1. Add "offline" attribute to Rule (Content) metadata

6.3. Admin Console

6.3.1. Global Offline Switch