I have made a RealTime and TurnBased Multiplayer Game(Android). Everything works good. I am using the
getSelectOpponentIntent()
from the Google Play Game Services to invite/challenge the friends. That has been deprecated by Google since August 2016 but still I used it to get the list of opponents.
The only problem using Google Play Game is, there are very limited number of users who have accounts on G+, as it fetches the friend list from G+ only.
I have tried using the Facebook Game Services but unfortunately, currently they do not provide the Apis for Realtime Game Play(By real Time I mean synchronous playing). There are other third part providers like nextpeer.com (each having its own pros and cons) but I love the way Google Play Game Services Work(as it fulfils all my requirements). Sending/Receiving Invitations work in a perfect way.
Now what I am thinking is, to Use Google Play services for gameplay and invitations while using Facebook friends or friends from my contact list.
I mean instead of using
getSelectOpponentIntent()
I want invitations/challenges to be sent in a following way.
Step 1: Open my custom Activity in which I list all my Facebook friends or all my contacts.
Step 2: Select the friends from the list.
Step 3: save the selected friends in a Arraylist.
Step 4: Pass on the list to Room Configuration Callback using Google Play Game Services like this.
rtmConfigBuilder.addPlayersToInvite(invitees);
I have searched a lot on this issue but didn't get any proper help. I have also started the implementation on my own but not sure whether google play services will be able to handle the manual friend list or not.
Any suggestions and help will be highly appreciated.
Thanks
Related
I'm planning to create an app for my classmates this Holiday So that we will be able to interact, share ideas, and challenge ourselves in a quiz.Like the SoloLearn app.
My Plan
-A user profile
-Home page where users can share ideas with each other.
-A page where users can complete a quiz to test their knowledge.
-The Challenge Zone where users can challenge each other in a quiz.
-.Settings
1.where a user can log in /log out
2.control the sound of the app.
3.switch to night mode and a search button to find other users.
But I don't even know where to start.
Have already download Java version 8, and Android Studio on my PC but I don't know the next step to take.
How do I achieve this goal?
The best way is by learning the course and Moreover it is freely available at https://www.udacity.com/courses/android
Moreover they teach you from very basic level so just check it out i have tried it too
if ever you want to create an app painlessly, consider app inventor from the MIT found here
I'm accessing the Google Play Games Services API from plain Java:
games.achievements().list(playerId).execute()
I seem to get only the current user's achievements - for other players, no result is returned.
The game is not yet published though, may that be the problem?
The API docs says
Lists the progress for all your application's achievements for the currently authenticated player."
But what's the point of providing a playerId then? Also, in the Play Games Android app, it is possible to compare one's achievements to so does seem possible.
Any experience? I don't know where to go with such contradicting information. I can't just publish in order to find out, nor can I continue without knowing if it'll work.
I am making an app, in which I want to directly give ratings and post reviews in Google Play for my installed apps.
I am using the Market API to fetch all the data of an app. Is there any way or any API which allows me give ratings and post reviews in Google Play?
No, there is no such API, sorry. In order for a user to review your app, they must do it in the Google Play app.
However, you can be clever on how you direct users. You could have a pop-up asking if they like your app, with a leading question that determines if the rating will be low or high, directing them to your own feedback system if it is low, and the Play Store if it is high.
Lets say I have an application on android and two of my friends have downloaded it. Many apps such as words with friends have the ability to look at your friends, find out who has downloaded the same app and display it in your own application so you can play/challenge them now does anyone know a good starting point at what to look at to accomplish this goal of finding which of my friends are using my app through facebook or what can I do to achieve this?
You can query me endpoint as following
/me/friends?fields=id,installed,name
It will return friends of user with either installed feed set or not depending upon the condition if they have installed or not.
Further documentation here
I have an online Java game I'm working on, how would I go about making it so that it was able to "know" which facebook user was logged in and who their friends are? (It's sort of a social writing game and I want users to be able to choose which friends are allowed to edit the story)
On your web page, have the facebook login button plugin to get people to log in. Then you can grab their user id for friends using one of the SDKs (your choice...what ever is easiest to integrate into your java code) and then pass that info into your java app.