3

Server Side I need to identify the carrier (ATT, Verizon, etc.).

On iPhone you can do it with the firmware number. I was thinking that Android's device + build information in the UA might do the trick.

Has anyone done this. I do not have client side access so Telephony Manager is not an option.

Gilles 'SO- stop being evil'
  • 104,111
  • 38
  • 209
  • 254
John Klein
  • 130
  • 2
  • 6
  • How about adding a custom header? – Cody Feb 09 '12 at 16:46
  • You do realize that international users might have the same firmware for different carriers, right? I don't think this will ever be possible unless you have ONLY US users and can guarantee that no one buys their devices without a contract – Blitz Feb 09 '12 at 17:01

1 Answers1

1

Unfortunately, User Agent won't do the trick.

You can get the carrier/network information for any device by using a geolocation service.

For at least one service that provides that level of detail, look at the answer to this similar question: How to determine if incoming IP address is from a mobile carrier?

You can probably find more.

Community
  • 1
  • 1
Marcus Adams
  • 53,009
  • 9
  • 91
  • 143
  • Thanks, I saw that. Geolocation service and mobile carrier IP address reverse lookup does partially solve the problem. It falls short if the device is connected over Wi-Fi. – John Klein Feb 09 '12 at 19:27
  • True, and a device connected over wifi may not have a cellular carrier, so you're stuck. – Marcus Adams Feb 09 '12 at 19:32