Reputation: 183
Is Their any Option to find the Network Carrier Provider information in an Application in IOS ? If Yes then provide me code as how we can know about ISP information in an ios Application.
Upvotes: 1
Views: 887
Reputation: 4513
To find carrier details for a iOS device you have to use the CoreTelephony framework, by first adding this to your project.
Then the main header file:
#import </CTTelephonyNetworkInfo.h>
create a instance and output the details:
CTTelephonyNetworkInfo *networkInfo = [[CTTelephonyNetworkInfo alloc] init];
NSLog(@"%@", networkInfo.subscriberCellularProvider);
Outputs the following:
- Carrier name:
- Mobile Country Code:
- Mobile Network Code:
- ISO Country Code:
- Allows VOIP?
Upvotes: 4