mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Gearhead's MsgNotifParser was rejecting Meshtastic notifications with: - 'No semantic reply action found' - 'No semantic mark-as-read action found' - 'added an invalid shortcut' Fixes: - Tag reply action with SEMANTIC_ACTION_REPLY + setShowsUserInterface(false) + setAllowGeneratedReplies(true) so Gearhead/Assistant can surface it. - Tag mark-as-read action with SEMANTIC_ACTION_MARK_AS_READ. - Publish an on-demand long-lived conversation shortcut whose id matches the notification's setShortcutId(contactKey). Previously only favorites + channels at index 0 had shortcuts, so DMs received on a non-zero channel referenced an unpublished shortcut and Android Auto refused to project them. Verified on Pixel 6a + DHU 2.0: notifications now carry matching long-lived shortcuts and project as messaging HUNs with reply, mark-read and reaction actions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle.kts | ||
| detekt-baseline.xml | ||
| README.md | ||
:core:service
Overview
The :core:service module contains the abstractions and client-side logic for interacting with the main Meshtastic Android Service.
Key Components
1. ServiceClient
The main entry point for other parts of the app (or third-party apps) to bind to and interact with the mesh service via AIDL.
2. ServiceRepository
A high-level repository that wraps the service connection and exposes reactive Flows for connection status and data arrival.
3. ConnectionState
An enum representing the current state of the radio connection (Connected, Disconnected, DeviceSleep, etc.).
4. ServiceAction
Defines Intent actions for starting, stopping, and interacting with the background service.
Module dependency graph
graph TB
:core:service[service]:::kmp-library
classDef android-application fill:#CAFFBF,stroke:#000,stroke-width:2px,color:#000;
classDef android-application-compose fill:#CAFFBF,stroke:#000,stroke-width:2px,color:#000;
classDef compose-desktop-application fill:#CAFFBF,stroke:#000,stroke-width:2px,color:#000;
classDef android-feature fill:#FFD6A5,stroke:#000,stroke-width:2px,color:#000;
classDef android-library fill:#9BF6FF,stroke:#000,stroke-width:2px,color:#000;
classDef android-library-compose fill:#9BF6FF,stroke:#000,stroke-width:2px,color:#000;
classDef android-test fill:#A0C4FF,stroke:#000,stroke-width:2px,color:#000;
classDef jvm-library fill:#BDB2FF,stroke:#000,stroke-width:2px,color:#000;
classDef kmp-feature fill:#FFD6A5,stroke:#000,stroke-width:2px,color:#000;
classDef kmp-library-compose fill:#FFC1CC,stroke:#000,stroke-width:2px,color:#000;
classDef kmp-library fill:#FFC1CC,stroke:#000,stroke-width:2px,color:#000;
classDef unknown fill:#FFADAD,stroke:#000,stroke-width:2px,color:#000;