feat(discord): integrate Discord Social SDK and native Rich Presence - #517
Open
Himanth-reddy wants to merge 1 commit into
Open
feat(discord): integrate Discord Social SDK and native Rich Presence#517Himanth-reddy wants to merge 1 commit into
Himanth-reddy wants to merge 1 commit into
Conversation
Himanth-reddy
force-pushed
the
feature/discord-social-sdk-integration
branch
from
August 6, 2026 08:32
403edc5 to
7349feb
Compare
Himanth-reddy
force-pushed
the
feature/discord-social-sdk-integration
branch
from
August 6, 2026 08:33
7349feb to
f87412c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Integrates the Discord Social SDK and native C++ JNI bridge into ARVIO for Discord Rich Presence and OAuth2 account connection. Displays real-time watch activity, movie/show poster artwork, episode information, and elapsed playback position on users' Discord profiles.
Key Changes
discord_bridge.cpp&DiscordBridge.kt): Added CMake build configuration linking via Prefab to the Discord Social SDK. Implemented thread-safe JNI callbacks using recursive mutexes.DiscordRpcManager.kt): Handled OAuth2 PKCE authorization flow, token exchange (openid sdk.social_layer_presencescope), connection state mapping, debounced presence updates, and automatic disconnect after 1 minute of pause inactivity.AndroidManifest.xml&DiscordRpcManager.kt): Added package visibility queries (com.discord&discord://) to automatically route authorization requests directly to the installed Discord Android app before falling back to the web browser.Watching(Watching Arvio).largeImage).XX:YY elapsed).S1E1 - The Heirs of the Dragon).SettingsScreen.kt): Added Discord Rich Presence account connection row to Settings -> Accounts with dynamic status indicators (Connected/Disconnected).Screenshots
Movie Watch Activity (
Supergirl)Watching ArvioSupergirl11:42 elapsedTV Show Watch Activity (
House of the Dragon)Watching ArvioHouse of the DragonS1E1 - The Heirs of the Dragon2:47 elapsedVerification
UpdateTokensuccess on Android emulator (127.0.0.1:6555).arvio://discord/auth) and token persistence.