I have a Quiz App for Android, it has the API made in php.
It run good for one player, but I need to implement a multiplayer option, my idea is that one user send invitation to a friend, then this friend accept her invitation and the two mobiles start to the same time.
I'm googling and I know that I've to use a room of Google API, but is it true that I have to pay $ 25 to access GCM API?
For can access to API GCM credentials i have use this console (https://play.google.com/apps/publish/signup/) and make developer account...
It's okay? or i don' t understood well?
If i understood well, how can i implement the service that create a Room, i want say, When can i start googling?, if i didn't undestood well, could you explain to me how do?
Please a need help, i'm losing on this theme :(
If you're trying to access Google Play Developer Console, where you can Publish or Manage your apps, you need to pay a one-time fee of $25.
The calls to the Google Play Games Services are free. Since you seem to be creating a real-time multiplayer, check the Quick Game option for Android. However, if you're going to implement REST calls they have the Get Started with Play Games Services for Web guide.
Related
I am trying to wrap my head around the approach I need to implement YouTube API V3 on my website, I shall describe the scenario:
I have a 'Platform' which enables users to create a 'Channel' and manage streamed content:
theplatform.com
When they create the 'channel' on the 'platform', they can provide their own URL, so:
mychannel.com is 'theplatform.com' under the hood
mychannel.com needs to publish and manage content on youtube.com/mychannel
I only want to create the Google Developer Project 'ThePlatform' once under the 'theplatform' google account
Channel owners need to 'connect' their YouTube channel to their 'mychannel.com' website without knowing about Google Developer Consoles (they are business users, not API developers)
If possible, when performing the OAuth, they should go to mychannel.com/oauth instead of theplatform.com/oauth,
unfortunately the OAuth settings seem to require set URLs for redirection, this would mean I would need to update the 'ThePlatform' API key settings for each new 'channel' before they could connect
The API Key for ThePlatform project will be hard-coded into theplatform.com and will be the same for mychannel.com, and by setting their YouTube Channel account on mychannel.com, theplatform.com's code knows it is interacting with the correct YouTube channel.
Does that make sense?
This is in PHP. I am using the PHP composer API.
I am happy for the 'ThePlatform' project to handle request quota, as I don't want to set up and manage a new project per 'channel' and will be charging 'channels' to cover costs.
If anyone gets what I am talking about here and knows the 'philosophy' and 'approach' I need to take I would love some advice. I am a developer on my own trying to start up, you guys may be my only help!
In the meantime I will plug away, if I come to a solution down the road I shall answer my own question for future developers. Thank you.
I am creating an web app and a user can start a game with multiple players (your friends). This game is played on 1 device. Is it possible that all invited players get a notification on their device where they can accept or decline the invitation ?
So in steps
Player 1 creates a game and invites player 2 and 3
Player 2 receives a notification on his mobile device and presses accept, he is added as player of that game
Player 3 doesn't have a device and enters his PIN to accept his participation.
The step that I want to have is step2.
I have read about OneSignal who can send push notifications to specific users, but I could not find if you can send a response back (accept or decline). Or is there an other way (without to have a native app).
your question is understood but at this moment a little too broad. But. I will try to answer in concept also :)
Now...you said you already know how to send target specific notification with OneSignal.
What you need to do from now one it cloud be like this:
Attach a link or click or action to that invite. Or when such invite
arrived open a particular view in the app/web/application that you are developing and revives the link.
Attach the session/game/user/object ID to that link and send the call
to you API (which is based on your server). If you have an API, if you don't you can have a very simple API build to handle only such requests with URL xxxx.com/path/to/api/call/var1/var2/var3/etc
From there you can catch the request and reply or adapt accordingly on your server side.
Maybe this Framework can help you to speed up the API dev in PHP. Lumen can do that trick.
You can follow this tutorial here for a fast API development with it.
I'm trying to implement push notification but I'm a little bit lost.
I just want to have a button in php and when I click it, a notification appear in all devices telling the users something like: "A new image is available in the web".
I read the GCM documentation but I'm not sure how to start.
I see that in some examples the users have to send their emails in order to register their "sender id"? it is necessary? I want the user don't have to register anywhere.
Can someone help me to start or give me a quick tutorial?
Thank's for all.
You will need to use curl to call the GCM, you can find examples like this all over SO, for example : how to send a notification to millions of android devices in php using GCM (first one that came up in a search)
And of course you will need the registration id's otherwise GCM doesznt know which device to send the notification to.
The solution is not so simple. You should at least use some package dedicated to this specific service. Also, you should read something about what push notifications are.
There are many services out there you can use to interface yourself with this specific kind of service.
Take a look to this service to get a first idea about the entire mechanism. Remember that you have to subscribe to a push service provider for every platform you want to use. For example the Apple Push Notification Service, or Cloud Messaging by Google.
Hope it's a good start for you.
I currently have Google OAuth 2.0 for authentication. Next I want to be able to use google hangouts in my website so users can chat with each other, along with showing their contact list. So basically I want it to look like how it is on gmail but on my website for hangouts. Main reason for doing this, I want my users to be able use hangouts as a mode of communication. Please let me know if this is possible and provide the necessary resources, an example/demo of this working would really be helpful.
Im afraid there's no API at the moment available (nor plans for that) to access the text chat feature of Hangouts.
yes, you can. More information about google hangouts API here https://developers.google.com/+/hangouts/getting-started
I am working on a web application with a build-in agenda. I want to add the items that have been added in this build-in agenda, to the user's Google Agenda. But there is one thing I am wondering. How to get access to that user's Google Agenda?
I was able to get access to my own agenda by adding the XXXXXX#developer.gserviceaccount.com email to the list of addresses that have access to my agenda. But asking everyone to do this isn't really user friendly.
So does someone know the best way to request access to another person's agenda so I can add events through the Google PHP API client?
Thanks in advance!
Consider using Oauth tokens. See https://developers.google.com/accounts/docs/OAuth2
and https://developers.google.com/google-apps/calendar/auth