Offline playback in mobile apps
Mobile apps should never hold your API key. The secure pattern: the app asks your backend for a link, your backend calls CrawlFetch, and the app downloads the file with the platform's background download APIs.
Flow
- App → your backend:
POST /offline { url }(authenticated user). - Backend → API:
GET /v1/resolvewith the server-side key; returndownloadUrland metadata. - App downloads with
URLSessionbackground tasks (iOS),DownloadManager/WorkManager (Android) or a background plugin (Flutter). - Store the file in app-private storage and play it with the native player.
FAQ
Why not call the API from the app?
Keys in apps can be extracted from the binary. Keep it on a server and add per-user limits there.
Related
Last updated 2026-10-25