-1

I'm creating an online game which have to send data between users. I chose Parse as the backend service. How can I use Parse to do this task?

maou
  • 23
  • 5

2 Answers2

0

Query for the user that you want to send data to and send data

Akil
  • 719
  • 13
  • 23
  • If you ask a more specific question with code that you tried , you will get more specific answers. – Akil Feb 12 '15 at 12:59
  • Could you tell how to send data, please code it for example. – maou Feb 13 '15 at 03:03
  • Are you sending the data from one android device to another or some other method? – Akil Feb 13 '15 at 21:18
  • I don't fully understand your question but form what I understand Yes, via TCP. – maou Feb 14 '15 at 02:28
  • I am not very well versed with sockets so i cant help much , But if your using parse , you can send data in push messages from one device to another in json format , Basically put the data in json format , query the device that you want to send and send the data , Then the recieveing device must have a custom onRecieve method to extract the data and perform the required operations. – Akil Feb 14 '15 at 11:02
0

Take a look a the Parse Docs. What you want to do is documented very well there.

https://parse.com/docs/android_guide

Take a look at saving and retrieving objects.

Also make sure your console (where you can see the "User" class and all your other classes) is set up with the objects you need.

nick9999
  • 601
  • 1
  • 8
  • 22