Quote:
Originally Posted by Suma
Hello,
I want to develop an application that stores user's data on an SQL server. The data contains location and some user note. I don't want to store anything on the user's iphone. So what i want to do is an application that gets the user location and check with the server if the location changed for about 100 meters. I believe this has nothing to do with push notifications. Am i right? And what do you suggest on how to implement it.... Just Give me an overview of your solution please.
Thanks*
|
You are correct, this has nothing to do with push notifications.
However, using server queries to see if the user's current location changed sounds like a bad plan to me. Remembering the user's last location requires a few tens of bytes of data, that can be easily held in memory. Using a round-trip query to a remote server to check the user's last known location seems like a "reaching around your elbow to scratch your backside way to go." You will be sending round-trip queries to the server every few seconds, and if you have any problem reaching the server your app will freeze until the network stall clears up, or the request times out. Another issue: Sending round-trip messages to the server every few seconds will keep the 3G/WiFi radio operating at full power constantly, which will drain the battery quickly.