BringBackJiraiyaSensei
Newbie
Im trying to add multiplayer to my game, but every time i try to invite others i get this error in my "onConnectionFailed" method which are called whenever there is no connection to Google play services. However i cant see to find much usefull information about this error, other than it MIGHT have to do with SHA1 certificat or recognization of my Google play service account. However i did already check that the package id is the same on my account and in the project so no problem there, i got my SHA1 from my console and added that to my gps account, not sure if im supposed to add it in my project somewhere aswell? Any tips will be appreciated!
anyhow the error:
onConnectionFailed:ConnectionResult{statusCode=RESOLUTION_REQUIRED, resolution=PendingIntent{154e98aa: android.os.BinderProxy@276fc9b}, message=null}
Before onConnectionFailed is called this happend when i press invitePlayer button from my menu, it allways goes to the else part of my loop and to onConnectionFailed:
Thanks in advance!
Kasper
anyhow the error:
onConnectionFailed:ConnectionResult{statusCode=RESOLUTION_REQUIRED, resolution=PendingIntent{154e98aa: android.os.BinderProxy@276fc9b}, message=null}
Before onConnectionFailed is called this happend when i press invitePlayer button from my menu, it allways goes to the else part of my loop and to onConnectionFailed:
Java:
public void invitePlayerClicked(View view)
{
// if mGoogleApiClient is connected
if(mGoogleApiClient.isConnected())
{
Intent intent = Games.RealTimeMultiplayer.getSelectOpponentsIntent(mGoogleApiClient, 1, 3);
startActivityForResult(intent, RC_SELECT_PLAYERS);
}
else
{
//connect it
mGoogleApiClient.connect();
mGoogleApiClient.connect(GoogleApiClient.SIGN_IN_MODE_REQUIRED);
Log.d("Action: ", "failed to connect.." );
}
}
Thanks in advance!
Kasper
