Skip to content

Commit

Permalink
Merge pull request #190 from birarda/18926
Browse files Browse the repository at this point in the history
Code Review for Job #18926
  • Loading branch information
spmmak7 committed Dec 19, 2012
2 parents b7083da + e5963f0 commit 9c190d7
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions candpiosapp/AppDelegate.m
Expand Up @@ -440,15 +440,10 @@ - (void)locationManager:(CLLocationManager *)manager didEnterRegion:(CLRegion *)
return;
}

// Don't show notification if user is currently checked in to this venue
if ([CPUserDefaultsHandler isUserCurrentlyCheckedIn] && [[CPUserDefaultsHandler currentVenue].name isEqualToString:region.identifier]) {
return;
} else {
// grab the right venue from our past venues
CPVenue * autoVenue = [[CPGeofenceHandler sharedHandler] venueWithName:region.identifier];
// Check in the user immediately
[[CPGeofenceHandler sharedHandler] autoCheckInForVenue:autoVenue];
}
// grab the right venue from our past venues
CPVenue * autoVenue = [[CPGeofenceHandler sharedHandler] venueWithName:region.identifier];
// Check in the user immediately
[[CPGeofenceHandler sharedHandler] autoCheckInForVenue:autoVenue];
}

- (void)locationManager:(CLLocationManager *)manager didExitRegion:(CLRegion *)region {
Expand Down

0 comments on commit 9c190d7

Please sign in to comment.