samuelthomas2774 / nxapi

Nintendo Switch Online/Parental Controls app APIs. Show your Nintendo Switch presence in Discord, get friend notifications on desktop, and download and access SplatNet 2, NookLink, SplatNet 3 and Parental Controls data. Mirror of https://gitlab.fancy.org.uk/samuel/nxapi.git.
GNU Affero General Public License v3.0
413 stars 34 forks source link

Samsung Android device support/application #32

Closed VincentJoshuaET closed 1 year ago

VincentJoshuaET commented 1 year ago

Samsung and Discord has a partnership so that Galaxy devices will show the game being currently played via Samsung's Game Launcher app. See this link for more information: https://support.discord.com/hc/en-us/articles/360031924632-Samsung-Integration-FAQ

Do you think it's possible to take advantage of this feature to implement nxapi for Android? This will be for Samsung devices only, but they're the most popular Android device manufacturer so this will still be very useful to many.

image

image

image

image

FieryFlames commented 1 year ago

I don't think this would be possible. As far as I know, game launcher just uses the app's name from the manifest, so if nxapi were to somehow work through this, it would need to have multiple installed apps for different games which is very impractical.

AAGaming00 commented 1 year ago

This also only works on an approved whitelist of games IIRC

VincentJoshuaET commented 1 year ago

This also only works on an approved whitelist of games IIRC

https://www.reddit.com/r/discordapp/comments/d2mv0o/comment/ezx15id

Based on most experiences it works on every game.

I'd actually be okay with individual apps for this. We don't need to download every app for each game, just the ones we have/we want to show the status.

I think Tachiyomi uses individual APKs for each source, it would be just easy to press a single button to download an APK especially if it's just small because it's not the actual game

FieryFlames commented 1 year ago

While using multiple apps would be possible to show presence using game launcher, I don't think it would make sense for this to go into nxapi, or to do all the work to get this working.

samuelthomas2774 commented 1 year ago

nxapi is primarily just a tool for accessing Nintendo Switch services. Discord presence is a feature of nxapi because it can be fully automated using data from Nintendo's API. Because a mobile application (using Discord's officially supported presence APIs) would require some level of manual data entry (opening specific apps depending on the title you're playing) I don't think this would make sense for a mobile version of nxapi (particularly as it would be limited to Android devices using Samsung's launcher), which would also leave multi-user support as the only feature Nintendo's official app doesn't include.

(Fiery is working on an Enmity plugin to add presence using nxapi's presence server. I think Enmity only works with the iOS version of Discord but something similar may be possible for the Android version.)