I am trying to alert user with a notification that if he reaches with a radius say 100m of a certain annotation (i created them) he should receive a notification.
Can any direct me in d right way cause m not able fto find anythng :/.
Thanx alot guys
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
UILocalNotificationdoes not have any other means to display them other the the fireDate method.If you want to tell the user that he is coming close to a specific GPS point you will need to let you app receive location updates when it is in the background.
You can do this by adding
Required background modesmode to the info plist and set it toApp registers for location updates.Now your app will keep receiving updates in background, this will only work on iPhone 3GS and up.
Then just schedule the
UILocalNotificationwith a fireDate set as[NSDate date]and it will fire immediately.