Skip to content

Commit

Permalink
Merge pull request jbeuckm#21 from cloflin/master
Browse files Browse the repository at this point in the history
Added iOS8 CoreLocation
  • Loading branch information
jbeuckm committed Dec 10, 2014
2 parents 5273c0b + 95872c4 commit d93ed56
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 1,699 deletions.
3 changes: 3 additions & 0 deletions Classes/LocationManagerDelegateProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ -(void)proxyAppDelegateLocationManagerMethodsTo:(id<CLLocationManagerDelegate>)d

TiApp *appInstance = (TiApp*)[[UIApplication sharedApplication] delegate];



[self setTargetDelegate:delegate forObject:appInstance];

[self addMethodsToAppDelegate:[appInstance class]];
Expand All @@ -30,6 +32,7 @@ -(void)proxyAppDelegateLocationManagerMethodsTo:(id<CLLocationManagerDelegate>)d

// This is what enables iOS to invoke the non-running app on region status events
// see: http://stackoverflow.com/questions/19127282/ibeacon-notification-when-the-app-is-not-running/22515773#22515773
locationManager.requestAlwaysAuthorization;
locationManager.delegate = appInstance;
}

Expand Down
4 changes: 2 additions & 2 deletions Classes/OrgBeuckmanTibeaconsModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ - (void) locationManager:(CLLocationManager *)manager didChangeAuthorizationStat
NSLog(@"[ERROR] Location services are not enabled.");
}

if ([CLLocationManager authorizationStatus] != kCLAuthorizationStatusAuthorized) {
if ([CLLocationManager authorizationStatus] != kCLAuthorizationStatusAuthorizedAlways) {
NSLog(@"[ERROR] Location services not authorized.");
}

Expand Down Expand Up @@ -472,7 +472,7 @@ - (NSDictionary *)detailsForBeaconRegion:(CLBeaconRegion *)region
- (NSString *)decodeAuthorizationStatus:(int)authStatus
{
switch (authStatus) {
case kCLAuthorizationStatusAuthorized:
case kCLAuthorizationStatusAuthorizedAlways:
return @"authorized";
break;
default:
Expand Down
Binary file removed CoreLocation.framework/CoreLocation
Binary file not shown.
30 changes: 0 additions & 30 deletions CoreLocation.framework/Headers/CLAvailability.h

This file was deleted.

195 changes: 0 additions & 195 deletions CoreLocation.framework/Headers/CLBeaconRegion.h

This file was deleted.

59 changes: 0 additions & 59 deletions CoreLocation.framework/Headers/CLCircularRegion.h

This file was deleted.

48 changes: 0 additions & 48 deletions CoreLocation.framework/Headers/CLError.h

This file was deleted.

18 changes: 0 additions & 18 deletions CoreLocation.framework/Headers/CLErrorDomain.h

This file was deleted.

Loading

0 comments on commit d93ed56

Please sign in to comment.