getMobileCarrierName spams logs due to call to non-functional serviceSubscriberCellularProviders #1055
Open
3 tasks done
Labels
enhancement
New feature or request
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:
The text was updated successfully, but these errors were encountered: