A share link can now be https://offband.app/add/channel#... or
/add/contact#..., on offband.app or dev.offband.app. The fields sit after
the #, which browsers never send, so a channel secret stays out of the
server's logs. The router turns the link into its meshcore:// twin, so
one parser still reads every form.
- Android: an autoVerify App Links filter for /add/ on both hosts, and
web/.well-known/assetlinks.json with the release key's SHA-256, served
as JSON. A verified link opens Offband with no chooser, so the stock
app, which also answers meshcore://, is out of the way.
- Web: the page's own address arrives as the initial link. Once read it
is cleared from the address bar, so a reload asks nothing.
- A tap on such a link in a chat message opens the add confirmation, as
meshcore:// links already do.
- An /add/ address with broken fields shows the invalid-link message;
the site's other pages are ignored.
iOS Universal Links follow once the Apple team ID and a profile with
Associated Domains are in place.
Agent: StormyElk (session 088ce922)
No platform declared the meshcore scheme, so a share link tapped in a
browser or another app went nowhere.
- Android: a meshcore VIEW/BROWSABLE intent filter on MainActivity, and
flutter_deeplinking_enabled=false, which app_links needs; otherwise
Flutter treats "channel/add" as a screen to navigate to.
- iOS: CFBundleURLTypes for meshcore, and FlutterDeepLinkingEnabled=false.
- macOS: CFBundleURLTypes for meshcore.
- app_links 7.2.2 (Apache-2.0) feeds the link the app was opened with,
and later ones, to LinkRouter (#1289). Only meshcore:// links are acted
on: on web the page's own address arrives as the initial link, and an
ordinary launch must not show a link message.
Windows and Linux wait on how the app is installed (#1284).
Regression tests:
- share_link_registration_test: the three platform declarations. All
three fail against dev's manifest and plists.
- link_router_test: only share links are taken from the OS.
- link_router_host_test: a link from the OS opens the confirmation, and
an ordinary address does nothing.
Epic: #1286
Feature: #1280
Agent: StormyElk (session 088ce922)
Backgrounding the app while the keyboard animates makes the Flutter
engine re-dispatch the insets it cached when the keyboard opened
(flutter/flutter#191156, fixed upstream on master only by #191453).
Flutter then keeps a keyboard inset with no keyboard: the chat stays
shrunk and the bottom bar loses its safe-area padding.
Once metrics and lifecycle settle for 500 ms, a nonzero Flutter inset is
checked against Android's root insets. If Android says the keyboard is
hidden, the insets are re-applied (the native side re-checks the
keyboard in the same main-thread turn) and the result is checked.
Silent per Ben's decision: WARN on a repair, INFO when it clears, ERROR
when it does not or a native call fails. Remove once the pinned Flutter
contains #191453.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gemini review findings. A relative OFFBAND_KEY_PROPERTIES now resolves
from android/, the same place key.properties has always lived, instead
of android/app/. A path that is a directory now fails like a missing
one. A signing file with no storeFile entry fails at configuration with
the file named, instead of late in the signing task with a generic
error.
Checked on a worktree with no key.properties: a missing path, a relative
path, and a file without storeFile each fail with their message; the
real path builds an APK signed with the release certificate; unset
builds a debug-signed APK, as before.
Agent: BrightForge (session 440fbe94)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The release signing config was read only from android/key.properties
inside the checkout, so every worktree needed its own copy of a file
holding the keystore passwords. When OFFBAND_KEY_PROPERTIES is set, the
build reads that file instead. Set but missing fails the build and names
the path, so it can never fall back to debug signing. Unset, nothing
changes, and CI keeps writing android/key.properties as before.
Checked on a worktree with no key.properties: a missing path fails with
the message; the real path builds a release APK whose signer is the
release certificate (apksigner), installed over the phone's 1.8.0. The
unset case is the old line unchanged and was not rebuilt.
Agent: BrightForge (session 440fbe94)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rebrand wrote Offband Meshcore, against the owner's capitalization. Launcher label, title, strings, notifications, window titles, web, release titles and docs are corrected. ProductName in Runner.rc deliberately keeps the old spelling: path_provider builds the Windows data folder from it, so changing it would orphan every Windows user's data. Bundle IDs, past release texts and the certificate subject are unchanged.
Epic #1014, Feature #200.
Agent: ChartreuseBay (session 425e424d)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1. The export shipped only the active log, and FileLogWriter._rotated was private, so offband.1.log and .2.log were unreachable by anything. An exit-record pointer line written at startup rotates out after a couple of MiB of ordinary logging, handing over a trace file with its metadata gone. FileLogWriter now exposes the files that exist, keeping the rotation naming where it belongs, and the mobile export attaches all of them.
2. dispose() called ioExecutor.shutdownNow() while a read could be holding a MethodChannel.Result. Interrupting it left the Result neither succeeded nor errored, so the Dart future never completed. Now shutdown(), with a disposed flag and a RejectedExecutionException path that always replies.
3. The trace read was skipped for REASON_CRASH_NATIVE on the assumption that its stream is always a protobuf. AOSP says a trace from an earlier ANR stays attached even when the process later died for another reason, so gating on the reason loses real text traces. The read is now attempted on every record and a printable-bytes check decides whether the content is usable.
4. The test-only main-thread block used a single Thread.sleep, which an interrupt could cut short: no ANR, no record, and a wasted trip to the hardware. It now sleeps to a deadline and ignores interrupts, which guarantees the duration without a busy-wait's CPU burn.
Review also flagged that FileLogWriter can exceed maxBytes for a single oversized entry. That is pre-existing writer semantics, already pinned by a test in this branch, and deliberately not changed here.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Reads the system's record of why this app's processes died, so an ANR that killed the process is recoverable on the next launch (#906).
getHistoricalProcessExitReasons is API 30 and minSdk here is 24, so the path reports itself unsupported below that rather than failing. The query and the trace reads run on a background executor: #334 is the leading hypothesis for these ANRs, so a collector that blocked the main thread would add to the problem it exists to measure.
A trace is not guaranteed even for REASON_ANR. AOSP keeps traces in a circular buffer shared across all applications, so another app's crash can evict ours, and a trace can ride on a record whose reason is something else. So the read is attempted on every record and absence is an ordinary outcome, not an error. getTraceInputStream() is declared throws IOException, so the call itself is inside the try, not only the reads on the stream it returns.
REASON_CRASH_NATIVE yields a protobuf tombstone rather than text from API 31, so its bytes are deliberately left alone and only the metadata is recorded.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Back at the root was calling SystemNavigator.pop(). That is not "background
the app": on Android it calls finish() on the activity, which tears down the
Flutter engine and drops the radio connection. Backing out and reopening
therefore landed on a disconnected radio needing a fresh connect. Wrong call
for the job, and worse than the behaviour it replaced.
Backgrounding without finishing needs moveTaskToBack, which has no Flutter
equivalent, so it goes over a method channel:
- MainActivity exposes meshcore_open/app_lifecycle with a moveTaskToBack
method, alongside the existing USB channel.
- AppBackgrounder wraps it and is a no-op off Android, where programmatic
backgrounding either does not apply (desktop windows close by their own
chrome) or is forbidden (iOS). On those platforms back at the root stays
unhandled rather than doing something destructive.
- AppShell awaits it instead of calling SystemNavigator.pop().
The activity stays alive, so the connection survives and reopening returns to
where the user was.
flutter analyze clean, dart format clean, 469 tests pass.
Bound ACCESS_FINE_LOCATION and ACCESS_COARSE_LOCATION to maxSdkVersion=30,
mirroring the already-bounded BLUETOOTH/BLUETOOTH_ADMIN. On Android 12+ the
app scans with BLUETOOTH_SCAN + neverForLocation and reads no phone location
(no location dependency or API usage in lib/), so location is only needed for
legacy scanning on API <=30. Cleaner permission profile + Data Safety story
for the Play submission (#159).
Epic #210. Test gate #212 (closed-beta hardware validation).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Freeze permanent applicationId/bundle id to app.offband.meshcore
(three-segment so app.offband.* reserves the brand family; a future
app.offband.meshtastic won't collide).
Display name "Offband Meshcore" across: Android android:label, iOS
CFBundleDisplayName, Windows + Linux window titles, MaterialApp title,
Windows VERSIONINFO (ProductName/FileDescription/CompanyName), pubspec
description, GPX creator. iOS/macOS bundle ids + Linux APPLICATION_ID
set to app.offband.meshcore.
Version 9.0.0+12 -> 9.0.1+13 (PATCH milestone + build).
Deferred (unchanged): internal Dart package name (meshcore_open imports),
Android namespace + MainActivity package, exe/bundle filenames, docs prose
(README/privacy/documentation still say MeshCore Open - separate sweep).
MIT attribution to zjs81/MeshCore preserved (LICENSE untouched).
Verified: flutter analyze clean; Android debug APK built green;
aapt2 dump packagename = app.offband.meshcore; Windows compiled clean.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Rewrite UsbScreen to mirror ScannerScreen patterns (status bar,
tap-to-connect port list, bottom FABs, SnackBar errors)
- Extract MeshCoreUsbManager from MeshCoreConnector for cleaner
USB transport ownership
- Add debug logging throughout USB connection flow (connector,
manager, web/native services)
- Print debug logs to console in debug mode even when app debug
log setting is disabled
- Localize remaining hardcoded strings (Web Serial Device fallback
label, USB status bar keys, companion firmware timeout hint)
- Fix Swedish misspelling in translations (stöderliga → stödda)
- Guard Linux notification init against missing D-Bus session bus
- Fix SNRIndicator hit-test error by adding minimum size constraints
- Update USB flow tests for new UI patterns
- replace Android USB dependency with app-owned USB host implementation\n- restore BLE-first scanner flow with USB secondary action\n- tighten Web Serial key handling and disconnect logging\n\nTODO (follow-up):\n- review non-English localization copy for tone and consistency\n- trim remaining unused/awkward localization strings introduced during USB UI changes
- Wrapped BLE scan and connection methods in try-catch blocks to handle errors gracefully and provide debug output.
- Added retry logic for service discovery on web platforms after transient disconnections.
- Updated USB connection messages in multiple languages to reflect active support on Android and desktop platforms.
- Improved loading indicators for contacts screen to show a spinner during data loading.
- Added flutter_linkify package to auto-detect and linkify URLs in chat messages.
- Implemented LinkHandler class to manage link tap confirmations and URL launching.
- Updated chat_screen.dart to use Linkify for displaying message text with links.
- Registered url_launcher plugin for handling URL launches across platforms.
- Updated pubspec.yaml and pubspec.lock to include new dependencies.
- Cleaned up untranslated.json by removing unused translations.
- Implement Community model for managing community data, including secret handling and PSK derivation.
- Create CommunityQrScannerScreen for scanning and joining communities via QR codes.
- Develop CommunityStore for persisting community data using SharedPreferences.
- Introduce QrCodeDisplay widget for displaying QR codes with customizable options.
- Add QrScannerWidget for reusable QR code scanning functionality with validation and controls.
Open-source Flutter client for MeshCore LoRa mesh networking devices.
Features:
- BLE device scanning and connection
- Nordic UART Service (NUS) integration
- Material 3 design with system theme support
- Provider-based state management
- Placeholder screens for chat, contacts, and settings
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>