@@ -152,10 +152,9 @@ public final class AsyncLocationManager {
152152 } )
153153 }
154154
155- #if !APPCLIP
155+ #if !APPCLIP && !os(tvOS)
156156 @available ( * , deprecated, message: " Use new function requestPermission(with:) " )
157- @available ( tvOS, unavailable)
158- @available ( iOS 14 , tvOS 14 , * )
157+ @available ( iOS 14 , * )
159158 public func requestAuthorizationAlways( ) async -> CLAuthorizationStatus {
160159 let authorizationPerformer = RequestAuthorizationPerformer ( currentStatus: getAuthorizationStatus ( ) )
161160 return await withTaskCancellationHandler ( operation: {
@@ -174,8 +173,7 @@ public final class AsyncLocationManager {
174173 } else {
175174 authorizationPerformer. linkContinuation ( continuation)
176175 proxyDelegate. addPerformer ( authorizationPerformer)
177- // TODO
178- // locationManager.requestAlwaysAuthorization()
176+ locationManager. requestAlwaysAuthorization ( )
179177 }
180178#endif
181179 }
@@ -360,10 +358,11 @@ extension AsyncLocationManager {
360358 if #available( iOS 14 , tvOS 14 , watchOS 7 , * ) , locationManager. authorizationStatus != . notDetermined && locationManager. authorizationStatus != . authorizedWhenInUse {
361359 continuation. resume ( with: . success( locationManager. authorizationStatus) )
362360 } else {
361+ #if !os(tvOS)
363362 authorizationPerformer. linkContinuation ( continuation)
364363 proxyDelegate. addPerformer ( authorizationPerformer)
365- // TODO
366- // locationManager.requestAlwaysAuthorization()
364+ locationManager . requestAlwaysAuthorization ( )
365+ #endif
367366 }
368367#endif
369368 }
0 commit comments