Open rnapier opened 4 months ago
@rnapier Thanks for reporting this. We will be marking this as an enhancement because we have to discuss with the team if using an availability macro is sufficient of if we should look at a more robust e2e approach to this. Will keep you posted on the ticket once we pick it up.
Prerequisites
Bug summary
Since iOS 16, it is no longer possible to get the mobile carrier information. The required functions are deprecated without replacement, and the OS will return a stub response with name
"--"
on device and nil on simulator. This is slow and spams the logs with errors such as:This call should be avoided on iOS 16+.
Environment
OS: iOS 16+ SDK: AEP 5.2.0 IDE: Xcode 15.4
Steps to reproduce
Call
getMobileCarrierName
. Observe logs forcom.apple.commcenter.coretelephony.xpc
errors.Current behavior
Spams logs with errors and returns "--" or nil.
Expected behavior
Should not attempt to access CoreTelephony on iOS 16+.
Anything else?
Something like the following would address the problem: