Skip to content

faraway-world/MusicBridge

Repository files navigation

MusicBridge Android

Companion Android app for MusicBridge server side.
This app listens to music player notifications on your phone (e.g. YouTube Music, Spotify, etc.) and forwards the song title and artist to the Flask server running on your PC. The server then updates your Discord Rich Presence in real time.

Features

  • Written in Kotlin.
  • Uses Android’s Notification Listener Service to detect media playback.
  • Sends track info via HTTP POST to your PC.
  • Lightweight, runs in the background while you play music.

How It Works

  1. When a song starts on your phone, the app reads the notification.
  2. Extracts title and artist.
  3. Sends them as JSON to your PC’s Flask server (default http://<PC-IP>:5000/update).
  4. Make sure to enter your tethering IP.
  5. Your PC updates Discord RPC with the new info.

Permissions

The app requires:

  • Notification access (to read song metadata).
  • Internet permission (to send data to your PC).

Setup

  1. Clone or download this repo:
    git clone https://github.com/faraway-world/MusicBridge.git
  2. You can download the apk from the latest release MusicBridge apk

Compatibility

  • Minimum Android Version: API 26 (Android 8.0 Oreo)
  • Target Android Version: API 35 (Android 15)
  • Architectures: Architecture-independent (pure Kotlin/Java, no native libraries) → runs on all ABIs (arm64-v8a, armeabi-v7a, x86, x86_64)

About

MusicBridge is a lightweight bridge that syncs your phone’s currently playing music with Discord Rich Presence on your PC.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages