iphone - How to get updated only once when user is in specific region? -


hello using corelocation in project know if have reached region. not using startmonitoringforregion instead using startmonitoringforsignificantlocationchange in background.

so when have location update check against stored place , if distance less or equal set radius send local notification. works fine except let's user in range , receives push. again when goes in background walk bit show notification. how cater i.e since received notification wont pop again , if when left region , re enter should pop up. thinking use boolean value check.

you may clear notifications in

- (void)applicationdidbecomeactive:(uiapplication *)application     [[uiapplication sharedapplication] cancelalllocalnotifications]; 

and recreate local notifications excluding region now


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -