Carrier Information Detection

Discussion in 'iPhone/iPad Programming' started by walty, Nov 18, 2008.

  1. macrumors member

    Joined:
    Jul 15, 2008
    #1
    Hi All,

    As requested by customer, I am required to perform some checking on the carrier information.

    I wonder if there is anyway to detect the information of carrier please?

    Thanks
     
  2. macrumors 6502a

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
    #2
    Carrier information is not listed in UIDevice, and as far is I'm aware we don't get access to it through the SDK.

    If you let us know the reason you need carrier data maybe we can help you with that problem? For instance, if you're using the carrier name for geolocation, you could try using IP geolocation instead.
     
  3. thread starter macrumors member

    Joined:
    Jul 15, 2008
    #3
    thx jnic, actually this project is supported by a local carrier, who explicitly requires some restriction to be imposed when program is on other carriers, so..

    And I found one problem with current SDK is, it is just hard to confirm what you CANNOT do.
     
  4. macrumors 6502a

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
    #4
    Yeah, it seems to mainly come down to trawling the code samples and docs until you find what you're looking for (or not as the case may be...)

    As a partial solution, you could try checking whether the user is connecting over 2G/3G rather than Wifi (Reachability code sample: http://developer.apple.com/iphone/library/samplecode/Reachability/) and then comparing the device's IP address from server side against known carrier network gateways.

    Sadly doesn't solve the situation where a user connects only over Wifi. Perhaps someone else here has a solution?
     

Share This Page