Unity 5.5 google play services problem

Hi,
Today unity release v5.5 Im intall the new version and now I have 2 new errors related to the google play services api.

  • 1
    Assets/GooglePlayGames/ISocialPlatform/PlayGamesLocalUser.cs(27,18): error CS0535: GooglePlayGames.PlayGamesLocalUser' does not implement interface member UnityEngine.SocialPlatforms.ILocalUser.Authenticate(System.Action<bool,string>)’

  • 2
    Assets/GooglePlayGames/ISocialPlatform/PlayGamesPlatform.cs(41,18): error CS0535: GooglePlayGames.PlayGamesPlatform' does not implement interface member UnityEngine.SocialPlatforms.ISocialPlatform.Authenticate(UnityEngine.SocialPlatforms.ILocalUser, System.Action<bool,string>)’

I was trying to do the fix from kidel on this thread:
https://github.com/playgameservices/play-games-plugin-for-unity/issues/1432

But this didn’t work to me.
Does anyone know how can I solve this? I really apreciate!!
Thanks :slight_smile:

1 Like

I have been experiencing the same problem. Hope it gets fixed soon

In Unity 5.5 they added new methods that you must implement if you implement the interfaces ILocalUser and ISocialPlatform.

You can add the missing methods yourself to get it fixed until they release an official solution.

Thanks for your repply @liortal but, could you please be a little more especific to me? like? what to type and where?
Im a little bit confuse with this changes on the methods!!

Also… on the Unity documentation for 5.5 says:

ILocalUser.Authenticate

public void Authenticate(Action callback);
public void Authenticate(Action<bool,string> callback);
Parameters
callback Callback that is called whenever the authentication operation is finished. The first parameter is a Boolean identifying whether the authentication operation was successful. The optional second argument contains a string identifying any errors (if available) if the operation was unsuccessful.

The optional second argument… so if its optional?? why the editor give errors on the scripts from google? :frowning:

it is not optional… if its defined in the interface, you have to implement that method.
I think that what they meant was that you can choose to do something with that argument, or ignore it.

Definitely should improve their documentation on this one.

you can just implement the empty methods from the interface in Google Play classes its complaining about - it seems they’re not actually used. I’ve had this working in my game without an issue.

In case someone still needs the fix:

On PlayGamesPlatform.cs:

//Temporal fix for error on implementation
public void Authenticate(ILocalUser x, Action<bool, string> callback)
{
//mPlatform.Authenticate(callback);
}

On PlayGamesLocalUser.cs

public void Authenticate(Action<bool, string> callback)
{
//mPlatform.Authenticate(callback);
}

1 Like

Just an update to say that the latest GPGS release (0.9.3.6 on 19/12) addresses this issue

Hell Yeah…!!! Thanks a lot @Pixelsprite for the input… Yes its fixed now!