Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

walty

macrumors member
Original poster
Jul 15, 2008
33
0
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

macrumors 6502a
Oct 24, 2008
567
0
Cambridge
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

macrumors member
Original poster
Jul 15, 2008
33
0
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

macrumors 6502a
Oct 24, 2008
567
0
Cambridge
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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.