Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get details about the device data provider (like Verizon/AT&T) of an iphone programmatically?

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

like image 886
auditya Avatar asked Feb 11 '15 12:02

auditya


People also ask

Can you view data history on Verizon?

How do I view my mobile usage details using the My Verizon app? Visit My Verizon app - view data usage to learn how to see your data usage, data amount and data history. Note: You can also call #DATA from your wireless phone to get a text message with current data usage details for that line.

How do I get the Verizon data usage widget?

It can be found by simply searching for “data usage calculator” on the Verizon Wireless website. Data Usage Widget – Customers with data plans also can download a Data Usage Widget to most Android™ smartphones, BlackBerry® devices and tablets.

Does Verizon sell user data?

While Verizon doesn't sell customer data to third-party advertisers, it might "de-identify or aggregate information so that Verizon or others may use it for business and marketing purposes."


2 Answers

You should check the 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
like image 111
Christian Avatar answered Nov 06 '22 12:11

Christian


You will want to use the CTCarrier carrierName in the CoreTelephony framework: https://developer.apple.com/library/prerelease/ios/documentation/NetworkingInternet/Reference/CTCarrier/index.html#//apple_ref/occ/instp/CTCarrier/carrierName

like image 25
Gary Riches Avatar answered Nov 06 '22 10:11

Gary Riches