question

Michael avatar image
Michael asked

Unity WebGL Google Account Login

Hi @Sarah Zhang,

I have found that playfab has a way to log in with google for both mobile and webgl (https://api.playfab.com/documentation/client/method/LoginWithGoogleAccount)

but i couldnt manage to succeed on WebGL.

Is there a tutorial or anybody can know that how to implement google account login on webgl.

unity3d
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

·
Xiao Zha avatar image
Xiao Zha answered

As @Gosen Gao said in this post, it's hard to support LoginWithGoogleAccount with Unity as Google Sign-In Unity Plugin hasn't been updated for many years. So, we recommend using Google Play Games Services in Unity, you may refer to Google Play Games plugin for Unity and then use LoginWithGooglePlayGamesServices.

However, since WebGL is not supported by Google Play games services, you may refer to Setting up PlayFab authentication using Google and HTML5 to implement Google login.

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.