diff --git a/Zombeacon/ViewController.m b/Zombeacon/ViewController.m index 7c4a28a..69b1e53 100644 --- a/Zombeacon/ViewController.m +++ b/Zombeacon/ViewController.m @@ -102,6 +102,7 @@ - (void)viewDidLoad // Be sure to register the view controller as the location manager delegate to obtain callbacks // for beacon monitoring self.locManager = [[CLLocationManager alloc] init]; + [self.locManager requestAlwaysAuthorization]; self.locManager.delegate = self; // Initialize the CBPeripheralManager. Advertising comes later. diff --git a/Zombeacon/Zombeacon-Info.plist b/Zombeacon/Zombeacon-Info.plist index 60121b7..cad83c4 100644 --- a/Zombeacon/Zombeacon-Info.plist +++ b/Zombeacon/Zombeacon-Info.plist @@ -2,6 +2,8 @@ + NSLocationAlwaysUsageDescription + To detect zombies CFBundleDevelopmentRegion en CFBundleDisplayName