Skip to content

Forward offline wardrive batches to Custom API after upload#28

Open
DataArchitectPro wants to merge 2 commits into
MeshMapper:devfrom
DataArchitectPro:feature/offline-custom-api-forward
Open

Forward offline wardrive batches to Custom API after upload#28
DataArchitectPro wants to merge 2 commits into
MeshMapper:devfrom
DataArchitectPro:feature/offline-custom-api-forward

Conversation

@DataArchitectPro

@DataArchitectPro DataArchitectPro commented Jul 1, 2026

Copy link
Copy Markdown

Summary

After a successful offline session upload to meshmapper.net, forward the same ping batch to the configured Custom API endpoint — mirroring the existing online queue behavior (api_queue_service already calls forwardPings() on success).

  • app_state_provider.dart: call _forwardOfflineBatchToCustomApi() after each successful offline batch
  • custom_api_service.dart: optional source (online/offline), contact/iata overrides, clearer [CUSTOM API] debug logs

Motivation

Online uploads already fire-and-forget to Custom API. Offline uploads (_uploadOfflineSessionIsolated) previously only POSTed to meshmapper.net — third-party endpoints (e.g. wardrive bridges) never received offline data.

Test plan

  • Active online: meshmapper.net upload + Custom API forward
  • Passive online: DISC pings forwarded
  • Offline mode: record pings → reconnect → upload → Custom API receives batch (verified with MM→MCT bridge)
  • Custom API disabled: offline upload to meshmapper.net unaffected

Fork test build: DataArchitectPro/MeshMapper_Flutter_App v1.0.0-offline-custom-api

DataArchitectPro and others added 2 commits July 2, 2026 01:40
After a successful offline batch upload to MeshMapper, mirror the online
queue behavior by forwarding the same pings to the configured Custom API
endpoint. Adds detailed [CUSTOM API] / [OFFLINE] debug logging for tracing.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keeps upstream PR limited to offline Custom API forward changes.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant