question

Francois Boucher-Genesse avatar image
Francois Boucher-Genesse asked

Is LoginWithGoogleAccount in the process of being deprecated?

We won't be implementing play-games-plugin-for-unity, as that plugin is not updated often enough and would introduce various issues for our project. It is very curious to me why the documentation of Unity/Playfab/Firebase/etc all tends to direct their users to that plugin as the default implementation of a Google sign-in.

In any case, I have noticed that LoginWithGoogleAccount as been referred to as "old" on these forums ( https://community.playfab.com/questions/67991/difference-of-loginwithgoogleaccount-and-loginwith.html ). Playfab documentation also seems to encourage migrating from using LoginWithGoogleAccount to using LoginWithGooglePlayGamesServices ( from https://learn.microsoft.com/en-us/gaming/playfab/features/authentication/platform-specific-authentication/google-play-games-sign-in-migration ).

So, will LoginWithGoogleAccount still be supported by Playfab in the future? Is funnelling new customers into LoginWithGoogleAccount advisable at this time, or will that gives us problems in the future?

apisunity3dAuthenticationandroidPartner Add-ons
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Infer Wang avatar image
Infer Wang answered

Authentication - Login With Google Account - REST API (PlayFab Client) | Microsoft Learn is not being deprecated. As long as you can get a ServerAuthCode with the "profile" scope, you can use this API for login.

But due to the reason below, developers that are using Play Games Plugin for Unity with versions (>= 0.11.x) will need to migrating from Google Sign-in to Google Play Games Sign-in in Unity:

If you were previously using the PlayFab LoginWithGoogleAccount API in your Unity game on Android, you might have noticed that you can no longer acquire the ServerAuthCode needed by this API with recent versions (>= 0.11.x) of Play Games Plugin for Unity. This is because in order for the PlayFab LoginWithGoogleAccount API to work, the "profile" scope is required. However, recent versions of Play Games Plugin for Unity (>= 0.11.x) don't support the ability to add additional scopes, leaving game developers with no possibility of upgrading their games to the recent version of the plugin since they depend on the LoginWithGoogleAccount API.

So, we recommend funnelling new unity customers into login with Google Play Games instead of Google Account.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.