I´m trying to develop my first Android app. It´s basically a score counter. My idea is to add a functionality like other apps like Wunderlist:
1) User A and user B have the app installed in their devices.
2) User A create a game score with two players (stored in xml format).
3) User A sends an invitation to user B to share this game score (maybe using its google account).
4) User B receives the invitation/notification and accept it.
5) Both users share the score, they can change it, and the score is updated in both devices every time it´s changed, so that both users have the same score.
6) If the score is deleted, the app send a notification to delete it in the other device.
In Wunderlist app, for example, you can create a list and invite someone to share the list. There is a lot of Android apps, like production apps, that share information this way.
¿How can I implement this?
Thanks in advance.
Question is very general, but I will try to answers as detailed as I can. First of all you will need a server which every user will be connecting. You can create connection between users with e.g. bluetooth, but it's only working on short distance as you may know.
Answer:
Every files should be stored in server, so you can send to your server data in JSON format which is very simple to implement. Then server can create push notifications to user which first user want to connect. The main idea is that every client have to create connection with server in order to receive push notifications.
In my humble opinion, the best solution in such case is Google Cloud Messaging, which sends server data to users devices.