Skip to content

requestWhenInUseAuthorization issue #70

Open

Description

@woyeyaowyy

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

Activity

  1. JakeLin commented on Dec 31, 2017

    @JakeLin
    Owner

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

  2. woyeyaowyy commented on Dec 31, 2017

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

  3. added a commit that references this issue on Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions