PDA

View Full Version : Carrier Information Detection




walty
Nov 18, 2008, 10:11 PM
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



jnic
Nov 19, 2008, 10:26 AM
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.

walty
Nov 19, 2008, 09:22 PM
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.

jnic
Nov 20, 2008, 04:53 AM
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.

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?