Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

requestWhenInUseAuthorization issue #70

Open
woyeyaowyy opened this issue Dec 29, 2017 · 2 comments
Open

requestWhenInUseAuthorization issue #70

woyeyaowyy opened this issue Dec 29, 2017 · 2 comments

Comments

@woyeyaowyy
Copy link

woyeyaowyy commented Dec 29, 2017

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
Copy link
Owner

JakeLin commented Dec 31, 2017

@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
Copy link
Author

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.

deepanshux pushed a commit to deepanshux/SwiftLanguageWeather that referenced this issue Sep 3, 2023
JakeLin added a commit that referenced this issue Sep 4, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants