I’m wondering if there is a possibility when you upload your highscore you can compare your score with the one of your friends (if simpler, only selected contacts)?
And if so, could someone point me in the right direction, how to do it? I did not find anything useful about this on google.
As far as I pressume it should be possible, because apps like WhatsApp also let you choose specific contacts you want to send a message.
Related to that: Can I just use a/the cloud for uploading highscore or should I use my webspace?
I’m wondering if there is a possibility when you upload your highscore you can
Share
I am not answering this specific to iOS/etc.
What you would typically do is expose a REST (or POX/POJSON – plain old XML or plain old JSON) service on your website that your application communicates with – it would be responsible for negotiating friendships, uploading high scores and retrieving high scores. This would either hit a database under your control or it would connect to a cloud server; there is no problem with either approach (Azure is a good option if you want to apply my SQL concepts).
Inside your database you would maintain a list of friends – this is a very simple structure to set up. Essentially you want two tables that look like the following:
This would allow you to indicate friendships along the lines of:
You can then query friends using the following query:
You could make that a TVF (Table Value Function) if your SQL variant supports them. Next you would create a high score table and a table to map it to users.
Some sample data for this would be:
You can then query for your friends’ highscores:
That query would give the top 10 score your friends; giving you their name and score.