location based process in iphone sdk?

I want to do local push Notification (giving alert) when the user comes in particular locations(in range).is it possible to do it? any example and tutorial please?

Answers


Nope. Local alerts can be scheduled ahead of time, but if your app isn't running, it has no way of checking your location. This makes sense because the GPS is hard on the battery, among other reasons.

A quick glance at the reference docs for UILocalNotification confirms this

http://developer.apple.com/library/ios/#documentation/iphone/Reference/UILocalNotification_Class/Reference/Reference.html

EDIT:

Actually! http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/BackgroundExecution/BackgroundExecution.html

(scroll down to "Tracking the User’s Location")

There is a bunch of location-based background stuff you can do. I don't think you can schedule an alert based on location, but you might be able to receive location notification and fire up an alert if you're in the right area.


Need Your Help

jQuery select element in parent window

jquery jquery-selectors popup parent

Is there a way to select a DIV in the parent window using jQuery?

javascript regex for validating for alphanumeric characters,all international characters(Japanese ,chinese,russian etc)

javascript .net regex asp-classic

one of my project requirements is to validate a data field(text box from web page). I need to allow alpha numeric characters in all foreign languages (japanese,chinese,korean,russian,latin american

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.