gamesdk-and-dispatch icon indicating copy to clipboard operation
gamesdk-and-dispatch copied to clipboard

Mobile support

Open hnguyen094 opened this issue 5 years ago • 4 comments

Not a bug, but a feature request! It would be nice to be able to have some basic functionality on Android & iOS, through some platform-compiled binaries (e.g. .so files for ARM or something). We're currently working on a multi-user experience that utilizes the Lobby APIs to connect various app clients to the same world instance. Having the ability to connect clients to the same lobby across platforms would be very intuitive.

Expected workflow

  1. Add some precompiled libs/binaries for ARM (whether iOS or Android).
  2. The SDK would work as expected on those platforms.

Implementation specifics

  • Not important to the request, but maybe as a data point we're working with C# Unity.
  • Would be perfectly fine if the mobile SDK launched an Android Intent/open some URI for the Discord instance to join a lobby, using the clientID & other relevant parameters as arguments. Unclear what the security implications are, but would love to discuss what challenges there might be.

hnguyen094 avatar Dec 29 '20 02:12 hnguyen094

Mobile Discord Client has no way of communicating to the Discord GameSDK if this was to go forward into production. So sadly, I don't believe this is possible.

Jump-Suit avatar Mar 19 '21 13:03 Jump-Suit

Not even as intent-based URIs (e.g. discord://discord.gg/somegame?authdata=xxxx&lobby=yyyy)? Is the mobile Discord client unable to communicate with the lobby creation/join backend or is there some other technical challenge?

hnguyen094 avatar Mar 19 '21 16:03 hnguyen094

Mobile Discord can't communicate no.. Sorry. https://discord.com/channels/613425648685547541/613425918748131338/619218346050846721 Read Mason's response about it here. It is what it is. EDIT: image Here's more info that should satisfy your curiosity.

Jump-Suit avatar Mar 19 '21 17:03 Jump-Suit

Yup, it makes sense! It seems like it's well discussed already so I won't go too much more into it. But at the very least it seems possible for lobbies through HTTP: image

Totally understand that

  1. Devs might want to have full feature-parity between mobile & desktop, which is impossible architecturally. But having just lobbies on mobile alone would be fantastic!
  2. There simply isn't enough people wanting this, and means that this kind of feature would just get backlogged until enough people (e.g. me & you, this thread) express more interest for it.

hnguyen094 avatar Mar 19 '21 17:03 hnguyen094