Android – displays the Google play game welcome dialog box when all apps start

The best example I try can be described by the behavior of the SimCity application (and I'm sure that many others I may not know still use Google login to play Google play games). After logging in to the Google play game on SimCity, a pop-up window will be displayed at the top of the screen every time the application is started. Now, In my application, I have followed all Google Documents( https://developers.google.com/games/services/android/init )The only code I have in onresume and OnStart is mgoggleapi. Connect(), This is exactly the same code as when I first clicked the login button and displayed the welcome dialog box

My question is: do I lack information about how to display this dialog box, or do applications such as SimCity exit me in some way every time I close the application, and then log back in when I open the application again? It doesn't seem to make any sense to me, but it's the only logical explanation I can think of at present

To be accurate to 100%, the following image is exactly what I am looking for

resolvent:

The welcome message will not be displayed in every login or authentication call. If the user has logged in to the application "recently", the message will not be displayed. This is a bit confusing because the connection is silent. You can confirm that the connection has been established by calling mgoogleapi. Isconnected() in the code

I quote "recent" because it is actually determined by the play game service. It aims to reduce interference to users, so they focus on the actual game rather than the instructions of user login

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>