android multiplayer, database connectivity api - php

am thinking to make a android multiplier game. Am looking for API which can connect to my database and access data continuously. In my mind i have a idea about this. I know how to connect to database with php and access data. But the problem is i cant figure out how to access data continuously until game runs. If you have a new idea please share it with me. Or else suggest me some API's or some methods or some links which may be useful. Any help will be appreciated.

Related

Multiplayer Android Game-doubts about database online

I developed a stupid game in eclipse (not using any particular library such as libgdx, only with "normal code").
I have some doubts about the multiplayer and databases online. In my game I haven't developed yet a database. So i thought I should have create a database online with mysql and connect to my android app. If so i would create users stored in my mysql online and the parse them with a json parser connecting to mysql trough some php based bridges.
Then i searched for android multiplayer and i found out that a more efficient way to create login user is using google+ login offered by google.
Gived the fact that my database isn't only a way to let user log in but it is also a way to store tha stats about their matches, If i wanted to use g+ login, should I have a mysql database connecting to my app to store other data, or in a way that i actually ignore google provides these things?
The other doubt is about multiplayer: what i should do to implement it?
Once the g+ login is implemented, then what should I implement?
Matches between users are managed and stored completely by google or not?
Should I have to add these informations in my DB online (if at the point one the DB is needed).
Sorry for my bad english.
Hope you can help me.
Thank you.

Connecting to MySQL with Angular JS

I'm attempting to create a database, and then connect that database to angular, so I can display simple blog like messages.
How would I achieve this? I understand that the easiest way would probably be to write a PHP service to retrieve the data from the database and then call that service from angular, but I have no idea where to even start.
Any direction would be greatly appriciated.

iOS app Update on new MySQL entry

I am trying to implement "passive-waiting" in an iOS app, connected to a MySQL database. The app needs to get information from the database, which is no problem, but what I can't figure out, is how i can get the MySQL database to somehow notify the app when a change occurs.
It could be implemented, by simple having the app constantly check the database asking for new entries, but that is not very efficient. Would be smarter if the app would only connect and ask the DB for data, when it KNOWS there is newly submitted data to fetch.
How can this be implemented?
Thank you
The concept you are looking for is called "Push notifications". Here is one of the tutorials I've found with a quick search: https://parse.com/tutorials/ios-push-notifications

Need help to figure out how to do a remote API connect call on my site

I have some skills in PHP and now I'm planning to develop a connect function for remote login to my web side. I can't find any useful on Google.
Some idees on how to code a API connect button? Something similiar to Facebook connect, Twitter connect etc. BUT this should not rely on facebook api. I'm going to make my own stand alone api.
I know I need to use REST in backend, but I'm missing the knowledge to know how to send / recive the login data, and how to know when a user are online or not.
I also know that the user will need a key of some sort.
My plan was something so easy as this:
yourdomain.com/api?id=xx&key=xxx&what=
then what is should be the action with som parameters like:
if($what == login) {
handle the login part here
return the data
}
I can handle the php on the server side, but don't have a clue on how to handle the rest except the remote site must get the data in json or xml format and save in database.
Then when connect, it sends some data back to my site.
But HOW?? Here I'm stuck.
Also how to figure out when user are online on the other site or not, and how to get the image for a button. Like Facebook have a blue icon.
I guess it's a call back to my site for getting the image from there, right?
Greatfull for any answers on this one.
Its a pretty large topic you have there, you'll need to do some research as there are many many ways and technologies and security aspects related to this.
I'd suggest you go with a secure connection on a SOAP service based off Zend Soap Server and Zend Soap Client. But then again, if you don't want to use ZEND or SOAP, you'll have to look at other methods.
I wouldnt use REST because REST is used to manage data such as PUT/POST = UPDATE/INSERT, DELETE = DELETE, GET = SELECT so i don't really recon this would make sense.
My biggest point i have to make is, MAKE APIS, something simple, you don't want people to have to ask you for help or read documentation on how to access your authentication service. Go something simple, clean, portable and provide API to simplify your user's experience.
My 2 cents :P

Upload Device Information to MySQL Database

I would like to submit information about the device in my iphone application. i.e what device is using the application and the date. I would really appreciate it if you could tell me/point me towards how I can upload this information via php to my MySQL database hosted on my website. I would also need to know how to set up this database assumably via php too so that the columns would contain the correct information.
Instead of cooking up your own implementation, have you thought of using something like Flurry? Besides the things you listed above that you'd like to track, Flurry helps you track other useful data. Another analytics service to consider is Google Analytics for Mobile (though it seems a bit rough right now...).
Hope this helps!

Categories