JakeLin / SwiftLanguageWeather

Swift Language Weather is an iOS weather app developed in Swift 4.
MIT License
5.24k stars 1.21k forks source link

requestWhenInUseAuthorization issue #70

Open woyeyaowyy opened 6 years ago

woyeyaowyy commented 6 years ago

When stopped at the interface asking for WhenInUseAuthorization long enough, the app will not work until relaunch. I think the problem is caused by this func in LocationService.swift:

func requestLocation() {
    locationManager.requestWhenInUseAuthorization()
    locationManager.requestLocation()
  }
JakeLin commented 6 years ago

@woyeyaowyy did you follow the step 4 in https://github.com/JakeLin/SwiftLanguageWeather#how-to-build? you need a key to run the app. Please let me know if you still have a problem, thanks.

woyeyaowyy commented 6 years ago

Yes. The problem is when the app are asking for when-in-use-authorization, user stopped for a while and accept , app will not work until relaunch.