iOS Question Retrieving Carrier Name from iPhone programmatically

Erel

Administrator
Staff member
Licensed User
Find an Objective C or Swift code and I will help you port it.
 

Erel

Administrator
Staff member
Licensed User
Untested code:
B4X:
Dim netinfo As NativeObject
netinfo = netinfo.Initialize("CTTelephonyNetworkInfo").RunMethod("new", null)
Dim carrier As nativeObject = netinfo.RunMethod("subscriberCellularProvider", Null)
Log(carrier.RunMethod("carrierName", Null).AsString)
 

ykucuk

Well-Known Member
Licensed User
Untested code:
B4X:
Dim netinfo As NativeObject
netinfo = netinfo.Initialize("CTTelephonyNetworkInfo").RunMethod("new", null)
Dim carrier As nativeObject = netinfo.RunMethod("subscriberCellularProvider", Null)
Log(carrier.RunMethod("carrierName", Null).AsString)
it works
 
Top