Service Layer low complexity mobile
0
Dependencies
1
Dependents
0
Entities
0
Integrations

Description

Fetches the privacy policy document from the backend endpoint or falls back to a bundled locale-aware asset, then caches the result locally so the screen is available offline. Allows server-side policy updates to reach users without an app release. No authentication is required to call this service.

Feature: Privacy Policy

policy-content-service

Sources & reasoning

The feature description explicitly requires remote policy delivery (so content can be updated without an app release) and local caching for offline access. A dedicated service encapsulates both the HTTP fetch and the offline fallback, keeping the UI widget free of network and persistence concerns.

No source references — this artifact was included based on reasoning alone (see above).

Responsibilities

  • Fetch policy Markdown/HTML from the backend REST endpoint
  • Fall back to bundled locale-aware asset when the network is unavailable
  • Cache fetched content in local storage for offline access
  • Expose the current policy string to the Privacy Policy Screen

Interfaces

fetchPolicy(locale: String) → Future<String>
getCachedPolicy(locale: String) → String?
clearCache()

Relationships

Dependents (1)

Components that depend on this component