简体   繁体   中英

How to get an access token with the OAuth 2.0 in the Unity Android Application?

I have the following scenario that needs to be implemented for our game: we use GameSparks and silent device authentication and if our player wants to get his data on the other devices, we give him an opportunity to register a new account using username and password or one of the services. These services are: Google Play and Game Center. But the problem is that I need to provide an access token for using GooglePlayConnectRequest, and I can't get this access token using Android Native Plugin, it just returns an empty string where the access token is supposed to be. Have anybody been able to get the access token, if yes - could you provide some tutorial or instruction? Maybe I need to use another plugin which gets the access token without any problems?

Thanks in advance!

我一直在努力解决这个问题,最后在 GameSparks 支持的帮助下我让它工作了,在这里查看: https : //support.gamesparks.net/support/tickets/3883

我遇到了类似的问题,但我正在使用Play Games Plugin 进行统一,也许我在这篇文章中的回答可以帮助您,尽管它仅适用于 android

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM