SwiftLanguageWeather icon indicating copy to clipboard operation
SwiftLanguageWeather copied to clipboard

requestWhenInUseAuthorization issue

Open woyeyaowyy opened this issue 7 years ago • 2 comments

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()
  }

woyeyaowyy avatar Dec 29 '17 14:12 woyeyaowyy

@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.

JakeLin avatar Dec 31 '17 01:12 JakeLin

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.

woyeyaowyy avatar Dec 31 '17 07:12 woyeyaowyy