I want to create a project in ASP.net with webAPI and Mongodb. client are IOS, Android, and Web. the question is about at client side when he/she is offline (no internet), they store data in Mobile (locally in android or pc or ios device) after come online (connect with server) the new data will be Sync. please guide me with MongoDB
Asked
Active
Viewed 64 times
2 Answers
0
Use Broadcast Listener to listen for Internet Connectivity... Keep your data stored on SQLite, and upload them once you get in internet connectivity.
You can know more about BroadcastListener from this link... http://developer.android.com/reference/android/content/BroadcastReceiver.html
and you can also see this about how to listen for Internet Connectivity Broadcast receiver for checking internet connection in android app

Community
- 1
- 1

haider_kazal
- 3,448
- 2
- 20
- 42