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;
}
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With