Why a Settings Abstraction
One API over SharedPreferences and NSUserDefaults.
The Storage Gap
Android and iOS each ship their own way to save small values. Without a shared layer, you would write that code twice. Let's fix that. 🔑
Two Native Stores
Android stores small key-value data in SharedPreferences, while iOS uses NSUserDefaults. Same idea, two very different APIs.
All lessons in this course
- Why a Settings Abstraction
- Read & Write Typed Values
- Defaults & Clearing Keys
- Store an Auth Token Securely