playgameservices / android-basic-samples

Google Play game services - Android samples
Apache License 2.0
971 stars 973 forks source link

No way of detecting when a RTM player disconnects. #267

Closed RubiconDev closed 6 years ago

RubiconDev commented 6 years ago

I'm using v 2.1 of the cpp gpg SDK.

My app runs perfectly, sending and receiving data between player A and B.

If B switches his WIFI off, there is no callback to let A know that he has left the game.

OnP2PDisconnected() isn't triggered. OnRoomStatusChanged() isn't triggered. OnParticipantStatusChanged isn't triggered.

Surely this isn't correct? I don't really want to have to add keep-alive ping packets to my game when it seems like there is facility already available using these callbacks.

Why don't they work?

BTW:I tried updating to v3.0 of the SDK, this causes masses of linker errors.

Regards,

Steve.

mwgray commented 6 years ago

Hi @RubiconDev,

This repo is for the java samples, you should try asking in the cpp repo.

Closing for now.