mirror of
https://github.com/ReactiveX/RxSwift.git
synced 2024-10-05 06:27:29 +03:00
Update Geolocation.swift
add case for whenInUse, as we required the only whenInUse location in our app to its better that our demo for geolocation subscription should work when user give the whenInUse permission. Currently its is showing error in case user given the whenInUse permission. Thanks
This commit is contained in:
parent
ceaddb2e66
commit
581a6985f6
@ -37,6 +37,8 @@ class GeolocationService {
|
||||
switch $0 {
|
||||
case .authorizedAlways:
|
||||
return true
|
||||
case .authorizedWhenInUse:
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user