Reputation: 684
Is there any method, function or property in iOS programming through which we can identify whether the SIM is prepaid or postpaid?
Can we use network information in any way to distinguish betweem pre and post?
- (NSDictionary *)fetchSSIDInformation {
NSArray *interfaceNames = CFBridgingRelease(CNCopySupportedInterfaces());
NSLog(@"%s: Supported interfaces: %@", func, interfaceNames);
NSDictionary *SSIDInfo;
for (NSString *interfaceName in interfaceNames)
{
SSIDInfo = CFBridgingRelease( CNCopyCurrentNetworkInfo((bridge CFStringRef)interfaceName));
NSLog(@"%s: %@ => %@", __func, interfaceName, SSIDInfo);
BOOL isNotEmpty = (SSIDInfo.count > 0);
if (isNotEmpty) { break; }
}
return SSIDInfo;
}
Upvotes: 9
Views: 4614
Reputation: 883
No, SIM cards or any network information available to the device will have no indication of subscriber type. The only important information the SIM holds is the International Mobile Subscriber Identity (IMSI) which uniquely identify's the SIM to the operator.
The Network operator will then associate a "subscriber type" (postpaid,prepaid,converged,hybrid) on the operators side (stored in the HLR) which will affect how billing is handled.
Exposing this information from the HLR publicly is generally never done however Operators my have a portal for service providers that could expose such a query.
Upvotes: 1
Reputation: 11577
I don't think you can, Apple does not expose any information regarding the sim. You may able to do, but apple will not consider your app in Appstore. Read Apple Developer Document
Upvotes: 0