     }
 
     // MARK: Helpers
+    
+    func appForegroundedAfterSettings (){
+        
+        NSNotificationCenter.defaultCenter().removeObserver(self, name: UIApplicationDidBecomeActiveNotification, object: nil)
+        
+        detectAndCallback()
+    }
     
     func statusForPermission(type: PermissionType) -> PermissionStatus {
         // :(

        return false
    }

    // MARK: - Location delegate

    public func locationManager(manager: CLLocationManager, didChangeAuthorizationStatus status: CLAuthorizationStatus) {

        detectAndCallback()
    }
    
    // MARK: - Bluetooth delegate
    
    public func peripheralManagerDidUpdateState(peripheral: CBPeripheralManager) {
        

        if let authChangeClosure = authChangeClosure {
            authChangeClosure(true, getResultsForConfig())
        }
    }
    
    func showDeniedAlert(permission: PermissionType) {
