Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we detect whether a SIM is prepaid or postpaid using iOS?

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;
}
like image 837
Rahul Verma Avatar asked Oct 12 '16 04:10

Rahul Verma


1 Answers

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.

like image 164
QuickPrototype Avatar answered Nov 13 '22 03:11

QuickPrototype