How to get software information about the device data provider (e.g. Verizon / AT & T) for iphone?

I am trying to create an ios application and want to segment users based on the data providers that they use, such as Verizon and AT & T. Is it possible to get this information programmatically from the ios application.

+11
ios objective-c iphone swift
source share
2 answers

You should check out CTCarrier .

Just import CoreTelephony into your Swift file.

Then you can use the carrierName property to get the name of your carrier.

 // Setup the Network Info and create a CTCarrier object let networkInfo = CTTelephonyNetworkInfo() let carrier = networkInfo.subscriberCellularProvider // Get carrier name let carrierName = carrier.carrierName 
+33
source share
+3
source share

All Articles