Closed NikolasManiatis closed 1 year ago
Hi @NikolasManiatis, thanks for submitting this - we're looking into this and will get back to you with a resolution when we have all the details. Just to confirm, this is occurring upon initializing your Appboy session, correct?
Furthermore, if you are able to upgrade, our new Swift SDK has a dedicated library for location features and would have more robust handling in line with your request.
Hi @jerielng, Yes its during the initialisation, it was introduced with iOS 16 SDK / Xcode 14. Apple seems to changed the way developers ask for the CLLocationManager.CLAuthorizationStatus but I have't looked into it deeply.
I will definitely check the Swift SDK and let you know!
Hi @NikolasManiatis, we have just released version 4.5.3.
of AppboyKit, which should resolve the warnings you're seeing in this instance.
Platform
iOS
Platform Version
iOS 16.2
Braze SDK Version
4.5.2
Xcode Version
14.2
Integration Method
Cocoapods
Computer Processor
Apple (M1)
Repro Rate
100%
Steps To Reproduce
Example:
pod 'Appboy-iOS-SDK'
to the Podspec file.Appboy.start( withApiKey: key, in: application, withLaunchOptions: launchOptions, withAppboyOptions: [ ABKInAppMessageControllerDelegateKey: self, ABKEnableAutomaticLocationCollectionKey: true, ABKEnableGeofencesKey: true ] ) Appboy.sharedInstance()?.inAppMessageController.inAppMessageUIController?.setInAppMessageUIDelegate?( self )
method inapplication:didFinishLaunchingWithOptions:
method inAppDelegate.swift
.Expected Behavior
We should expect no warnings from Xcode regarding multithreading issues.
Actual Incorrect Behavior
Xcode presents a warning in the Issue Navigator that
AppboyKit/AppboyKit/AppboyKit/Location/ABKLocationUtilities.m:29 This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the
-locationManagerDidChangeAuthorization:callback and checking
authorizationStatusfirst.
The Xcode Issue Navigation will be attached here:Verbose Logs
No response
Additional Information
No response