         return status == .authorizedAlways || (!background && status == .authorizedWhenInUse)
     }
     
-    open class func location(_ background: Bool = false, manager defaultManager: CLLocationManager? = nil, closure: @escaping AuthStatusClosure<CLAuthorizationStatus>) {
+    open class func location(background: Bool = false, manager defaultManager: CLLocationManager? = nil, closure: @escaping AuthStatusClosure<CLAuthorizationStatus>) {
         onMain {
             hasLocationClosures.append(closure)
             guard !isHasingLocation else { return }

import Foundation

import UIKit

import CoreLocation

import AVFoundation

import Photos

import AddressBookUI

import EventKit

public typealias AuthClosure = (_ authorized: Bool) -> Void

        return UIApplication.shared.isRegisteredForRemoteNotifications
    }
    
    open class func push(types: UIUserNotificationType = [.alert, .badge, .sound], closure: @escaping AuthClosure) {
        onMain {
            hasPushClosures.append(closure)
            guard !isHasingPush else { return }
