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:
Suryakant 2019-04-21 18:05:47 +05:30 committed by Krunoslav Zaher
parent ceaddb2e66
commit 581a6985f6

View File

@ -37,6 +37,8 @@ class GeolocationService {
switch $0 {
case .authorizedAlways:
return true
case .authorizedWhenInUse:
return true
default:
return false
}