-
Notifications
You must be signed in to change notification settings - Fork 667
Description
Bug Report
A new feature in Xcode 14 is displaying purple warnings about UI Unresponsiveness coming from CDVLocation.m#L89 - this issue seems specific to iOS 16x too. Its a part of the isLocationServicesEnabled
function.
This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the
-locationManagerDidChangeAuthorization:callback and checking
authorizationStatus first.
The warning gets thrown about 50 times too (not certain why though). I and others (on different forums) are experience app freeze/crashes with some getting apps rejected from app store.
Problem
iOS 16 apparently has changed behavior regarding location permission checks - the specific code commented with iOS 4.x
- so it looks like a fix for iOS 4 and has worked all the way through iOS 15 is now causing issues.
What is expected to happen?
Work cleanly without throwing warnings.
What does actually happen?
Throws the above warning.
Environment, Platform, Device
Mac 13.2.1 Ventura
Xcode 14.2
Version information
Cordova 11
cordova-ios: 6.2.0
iOS: 16.x
Checklist
- [x ] I searched for existing GitHub issues
- [x ] I updated all Cordova tooling to most recent version
- [x ] I included all the necessary information above