Sign In Register

How can we help you today?

Start a new topic
Answered

[Unity] Google Plus Authentication

Hi guys,


i have some problems trying to log on GameSparks with Google Plus (Play Services) authentication.


I had setup my application, a was able to correctly login with PlayServices and retrieve the access token, but when i use it with GooglePlusRequestConnect i always have the "NOAUTHORIZED" error.


I don''t have any idea how to deal with this, i have follow your tutorial but i cannot understand what problem could cause this error.


Have you got any suggestions ?


Thanks for your reply,


Andrea


Best Answer

 So there is a few issues that might be causing problems here.
Google plus and Google play users are not the same just because the player has the one account. It is possible to have one without the other. There is also things to look at like user permissions, which would allow you to get credentials back, but dont let GameSparks login on behalf of the user with those credentials.

We've update the tutorials on these things, so you can check them out to see if that resolves your issue.
Thanks,
Sean

https://docs.gamesparks.com/api-documentation/request-api/authentication/googleplusconnectrequest.html
https://docs.gamesparks.com/tutorials/social-authentication-and-player-profile/google--authentication.html
https://docs.gamesparks.com/api-documentation/request-api/authentication/googleplayconnectrequest.html


3 people have this question

I am absolutely not sure as I am a beginner myself. But try to play with the settings  


"doNotLinkToCurrentPlayer": 

"errorOnSwitch"

"switchIfPossible"


It could have something to do with you already having a linked account and you have not set it to switch if possible. 

Thanks Rolf for your reply, but it's not something related to this options. I try to modify it but nothing changes.


I think it's something related to the registration token i retrieve from Googl Plus, or some wrong settings, but i don't understand which one.


I opened a ticket, hope to get some help there. If i'll get some useful tips i'll post it here, so if someone has the same issue could use the information.

HI,


I have the same problem, any help plz?

Answer

 So there is a few issues that might be causing problems here.
Google plus and Google play users are not the same just because the player has the one account. It is possible to have one without the other. There is also things to look at like user permissions, which would allow you to get credentials back, but dont let GameSparks login on behalf of the user with those credentials.

We've update the tutorials on these things, so you can check them out to see if that resolves your issue.
Thanks,
Sean

https://docs.gamesparks.com/api-documentation/request-api/authentication/googleplusconnectrequest.html
https://docs.gamesparks.com/tutorials/social-authentication-and-player-profile/google--authentication.html
https://docs.gamesparks.com/api-documentation/request-api/authentication/googleplayconnectrequest.html

Login to post a comment