1

I am making an application based on location services. I want to know best practices for storing users friend list. If friends list is stored on server then if user don't have internet connection he will not be able to see the friends list. On the other hand if friends list is stored on device (and there is no internet connection), list might be not up to date. I understand it is not a programming question but would like to know what will be the better practice. Any suggestions will be greatly appreciated.

alekhine
  • 1,600
  • 4
  • 20
  • 45

2 Answers2

1

On iOS, iCloud has a very extensive API allowing you to store local copies and detect alterations to local and remote files to easily set up syncing:

Documentation

Not sure how to implement a similar system on Android however.

0x90
  • 6,079
  • 2
  • 36
  • 55
1

Android and Google gives you a free Backup service which allows you to store your application data on a remote Google server and do restores as required. Android provides a nice API for making it all happen very easily so you don't have to reinvent the wheel. So I would go for a solution where you would store data at the client side but do scheduled backups

For more info take a look at Android Data Backup

Amokrane Chentir
  • 29,907
  • 37
  • 114
  • 158
Marek Szanyi
  • 2,348
  • 2
  • 22
  • 28