Mobile App Integration Guide
This guide details best practices for Flutter / Mobile developers building against the LearnWay Backend.1. Network & Base URL Configuration
- Development (iOS Simulator):
http://localhost:3000orhttp://127.0.0.1:3000 - Development (Android Emulator):
http://10.0.2.2:3000 - Staging / Production:
https://api.learnway.xyz
/api/v2/.
2. Localization Header
To receive content translated into the user’s selected language, pass theAccept-Language header in every request:
en, es, fr, pt, sw, ar, id, and hi.
3. WebSockets Connection in Flutter
Usesocket_io_client: