iphone - iOS Location based reminder -


i making application has feature allows users create location based notifications turn application on/off when arrive/leave location.

reminders created (as indicated first picture), not triggered upon arriving/leaving. enter image description here

if on other hand user click on reminder, kind of adds address (shown on picture number 2) , there on triggered enter image description here

i wondering if there way make reminder app recognize address or other suggestion, might me in solving peculiar problem.

thank in advance,

br, rok

the code use is:

ekreminder *reminder = [ekreminder reminderwitheventstore:_eventstore]; reminder.calendar = [_eventstore defaultcalendarfornewreminders];  ekstructuredlocation *location; nserror *error = nil; ekalarm *alarm = [[ekalarm alloc]init]; reminder.title = @"turn off test app"; location = [ekstructuredlocation locationwithtitle:self.addresstextfield.text]; [self.addresstextfield resignfirstresponder]; alarm.proximity = ekalarmproximityenter; alarm.structuredlocation = location; [reminder addalarm:alarm];  [_eventstore savereminder:reminder commit:yes error:&error]; 

the problem failing set ekstructuredlocation's geolocation , radius. has title. isn't enough tell alarm on earth supposed be!

example:

location.geolocation =     [[cllocation alloc] initwithlatitude:latit longitude:longit]; location.radius = 10*1000; // metres 

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -