You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/android/architecture.md
+2-49Lines changed: 2 additions & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,53 +87,6 @@ The automotive application reuses the sources of the `:app` module, simplifying
87
87
88
88
The Wear OS app communicates with the mobile app to retrieve credentials for the Home Assistant server and other configurations using the [Messaging API](https://developer.android.com/training/wearables/data/messages). It only works with the `full` flavor, as it requires Google Play Services. Once the initial setup is complete, all further communication is handled directly with Home Assistant through the WebSocket and the [webhook](/docs/api/native-app-integration/sending-data) that is created for the app.
89
89
90
-
## WebView communication architecture
90
+
## Frontend communication
91
91
92
-
The Android app's WebView acts as a bridge between the Home Assistant frontend and native Android capabilities. This architecture enables [external authentication](docs/frontend/external-authentication.md) and [external bus](/docs/frontend/external-bus) messaging between the frontend and native code.
-**FrontendJsBridge**: JavaScript interface exposed to the WebView that receives calls from the frontend
137
-
-**FrontendMessageHandler**: Central message handler that routes requests between the frontend and native components
138
-
-**FrontendExternalBusRepository**: Manages bidirectional message passing for the external bus protocol, parsing JSON messages into strongly-typed data structures
139
-
-**ServerSessionManager**: Handles authentication token management for external authentication
92
+
The dashboard is the Home Assistant frontend rendered inside a [WebView](https://developer.android.com/reference/android/webkit/WebView), which the app talks to over [external authentication](/docs/frontend/external-authentication) and the [external bus](/docs/frontend/external-bus). The screen that hosts it — its MVI‑like structure, the JavaScript bridge, the message flow, and the V1/V2 protocols — is documented in [UI architecture (MVI‑like)](/docs/android/ui_architecture#frontend--native-communication).
0 commit comments