Add an Android app #48

Merged
squid merged 3 commits from feat/android-app into main 2026-11-17 09:42:27 +00:00
Owner

I'm adding android/: a Capacitor shell that opens a Sonda server in a WebView, for a phone whose browser cannot install a PWA.

  • It asks for the address of the server the first time, and Settings has Change server inside the app.
  • It trusts the certificate authorities installed on the phone, and opens a server on plain http.
  • A WebView has no Media Session API, so the app keeps a notification with the cover and the buttons, and the music goes on with the screen off.
  • The web app talks to it through one small object, and a restored queue now reaches the lock screen too.

I tested it in the emulator: media keys, the screen off with several songs in a row, the notification and the cover. It builds from a clean clone. It is not in the release pipeline.

Fixes #47

I'm adding `android/`: a Capacitor shell that opens a Sonda server in a WebView, for a phone whose browser cannot install a PWA. - It asks for the address of the server the first time, and Settings has Change server inside the app. - It trusts the certificate authorities installed on the phone, and opens a server on plain http. - A WebView has no Media Session API, so the app keeps a notification with the cover and the buttons, and the music goes on with the screen off. - The web app talks to it through one small object, and a restored queue now reaches the lock screen too. I tested it in the emulator: media keys, the screen off with several songs in a row, the notification and the cover. It builds from a clean clone. It is not in the release pipeline. Fixes #47
A queue that came back after a reload was set before the player started to
follow the state, so the lock screen never heard about its song: no title and
no controls until the song changed, and a press of play told it nothing.
The lock screen is now told about the restored song, paused, where it was.
A WebView has no Media Session API. When the page runs inside the app it
tells the app what plays, as one message per change, and the app asks the page
back when a button of its notification is pressed. Settings has a Change server
link, shown only inside the app.
A Capacitor shell that opens a Sonda server in a WebView. It asks for the
address of the server the first time and remembers it, trusts the certificate
authorities installed on the phone, and keeps a notification with the
controls so that the music goes on with the screen off.

Fixes #47
squid merged commit d57fbe3ef1 into main 2026-11-17 09:42:27 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
squid/sonda!48
No description provided.