I can only imagine there must be a way for me to invoke some kind of GUI that will show all the matches a player has going on, whose turn it is, who they're playing etc. Is there such a GUI call for Google Play Game Services or do I really need to work this all out manually by loading matches and created my own GUI from the data? It's proving to be a lot of work and I feel like it just HAS to be wasted effort. Game Center has it...
From Developing a Turn-based Multiplayer Game in Android found in the Google Play Game Services docs.
Once a player has signed in to your game, the player may receive invitations to join a turn-based match created by another player. To save coding time and provide users with a consistent UI for responding to match invitations across applications, you can use the default match inbox UI provided by the SDK. To launch the default match inbox UI, call getInboxIntent() to get an Intent; then call startActivityForResult() and pass in that Intent.
It appears there is a built in GUI. I don't have an app to try it out but you can get more information here I hope that helps.
Related
I got a new Google Analytics ID for my Android app (a game) in development (unreleased) around a week ago.
Only today, I integrated Google Analytics SDK into my game, tested it and made it send events.
For the first time, I opened my Google Analytics portal for my game and much to my astonishment, it has recorded app "views" and "sessions" from last week even before I integrated the SDK into my game (which is still unreleased).
It has recorded 40 "new users" yesterday. It doesn't make any sense.
Is there an explanation for this?
PS: Under "top device models", it shows iPhone which is impossible since my game doesn't work on iPhone.
I did check to ensure that this is the right GA ID and there is no doubt that my game is correctly associated with the GA ID.
What you are seeing are the activities of spam "visits", where the hits don't actually visit your site but rather simply, and agnostically, target your property ID. So whether you have a web app or a native mobile app, you may be hit with these "visits". You will need to set up filters to prevent these activities from affecting your data, including a filter to only allow hits from a white listed set of valid hostnames and a filter on the campaign source. This article has some great tips on how to set those up: http://www.analyticsedge.com/2014/12/removing-referral-spam-google-analytics/
The documentation for this seems to be very confusing to me. But basically is there a way I can track the points/achievements unlocked in Google play services (or even display them somewhere individually?), so that in turn I can display in a listview "unlocked" items the user can use?
I just need to know if their is an initial call method that can help me with this (I'm a beginner in android) thanks
i noticed that the example for realtime multiplayer called "ButtonClicker" uses the same activity to do the game and the login activity. Is there a way to separate these activities? I would love to make the user login and join a room on one activity, but the game starts on other activity.
How can i do that?
I tried to create another BaseGameActivity and put all the information needed for sending and receiving unreliable message on a singleton(so the login activity can send these information to the game activity): user Id, room Id, ArrayList of the Participants and GoogleApiClient. But still, none of the players are executing the method onRealTimeMessageReceived().
What is wrong?
The accepted answer here (from the Google guy who wrote the samples you are using) explains why the samples were written as single activities:
Google Play Game Services multiplayer with Activity switching
I rewrote my game services code as a set of fragments. Here is some information on a specific issue that I encountered, but some of the more general comments here may help you:
Calling Google Play Game Services from a fragment
I wrote part of my code as a headless fragment. Here is some information on that:
Google Play Game Services Multi-Player Device Orietation change kicks user out of room
So, in summary, separate fragments rather than separate activities is the route that I recommend.
im trying to develop a multiplayer game using google play game service.
In my game i have some game logic that will run only one players set ,which i prefr to call host.
i would like to determine the host by player who created the room.
but i see room creator id can be different in different players set on a single game,and each returns as creator in auto match game.
so what should be the ideal way to find a host ,apart from sorting the player list and use the first participant as host ?
Google provided a video specifically on Google Play Games: Choosing a specific user which explains how to work around agreeing and assigning a specific user a special roll. In summary: sort the participantIds and have the first by sorted order randomly choose the host and broadcast that to the other players. This ensures that all users agree on the host and the host is randomly chosen each time.
Simply..
Is there any programmatic way to instantly or in a real-time fashion know when your app has been downloaded from google play store?
I found this service, http://distimo.com which has a api, but their docs are talking about giving stats within the last month
Also, found this app, https://play.google.com/store/apps/details?id=com.github.andlyticsproject, but I want api/realtime webhook like interaction.
Is there any hook within the Android API that can be utilized in knowing within minutes of your app being downloaded.
I understand about getting notified through various means when someone, OPENS, your app but what about just downloads it?