Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the -locationManagerDidChangeAuthorization: callback and checking authorizationStatus first. #372

Open
harryngict opened this issue Sep 4, 2024 · 1 comment

Comments

@harryngict
Copy link

Describe the bug
This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the -locationManagerDidChangeAuthorization: callback and checking authorizationStatus first.

To Reproduce
Step 1: we call the code getLocationWithSuccess from CleverTapSdk

 CTLocationManager.getLocationWithSuccess { location in
            CleverTap.setLocation(location)
        } andError: { error in
            if let e = error {
                debugPrint(e)
            }
        }

Expected behaviour
A clear and concise description of what you expected to happen.

Screenshots

Screen
Untitled

Environment (please complete the following information):

  • Xcode version: XCode 15.4
  • CleverTap SDK Version: CleverTap-iOS-SDK (6.2.1)
  • Device: Iphone 8 Simulator
  • OS: iOS 16.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@harryngict and others