     		.objectForInfoDictionaryKey(Constants.InfoPlistKeys.locationWhenInUse).isNil
     	assert(hasWhenInUseKey, Constants.InfoPlistKeys.locationWhenInUse + " not found in Info.plist.")
     	
-        switch statusLocationInUse() {
+        let status = statusLocationInUse()
+        switch status {
         case .Unknown:
             locationManager.requestWhenInUseAuthorization()
         case .Unauthorized:

        } else {
            return .Unknown
        }

        switch (bluetoothManager.state, CBPeripheralManager.authorizationStatus()) {
        case (.Unsupported, _), (.PoweredOff, _), (_, .Restricted):
            return .Disabled
        case (.Unauthorized, _), (_, .Denied):

    Requests access to User Notifications, if necessary.
    */
    public func requestNotifications() {
        let status = statusNotifications()
        switch status {
        case .Unknown:
            let notificationsPermission = self.configuredPermissions
                .first { $0 is NotificationsPermission } as? NotificationsPermission
