Menu

One Dart proxy between our Flutter app and every data supplier
📰

One Dart proxy between our Flutter app and every data supplier

DEV Community: dart·Navaneeth S Anil·4 days ago
#hSmS7kGz
#devtodart#devto#dev#proxy#supplier
Long article (439 words) — no AI summary yet.
Reading 0:00
15s threshold

We just launched AVICLIMAR, a map that shows live aircraft (ADS-B), ships (AIS) and weather layers together, on Android, iOS and the web from one Flutter codebase. The most useful decision we made was one we almost skipped: the app never talks to a data supplier directly.

The problem

Every layer on the map comes from a paid real-time API: aircraft positions, vessel positions, weather and air quality. Calling them straight from the app would mean shipping API keys inside an APK, an IPA and a web bundle, where anyone can pull them out. It would also mean every user's map viewport becomes its own supplier request, and supplier plans are priced per request.

One Dart proxy in front of everything

Every supplier call goes through a small proxy written in pure Dart. It is compiled ahead of time and runs in a container on AWS behind CloudFront. The app only knows the proxy's URL and sends the signed-in user's ID token with each request.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.