Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Does anyone know if there is a way (In BREW 2.0 or 1.1) to determine which carrier a device is using, either by code on the handset or a server side solution?

As far as I know there is no reliable way to determine the carrier. You can try and use the combination of MNC + MCC but this will only work partially mainly in cases you do not have more than one carrier at a given country (i.e. you will not be able to use this methid to differentiate between US carriers).
Another alternative is to include a text file which identifies the carrier in your submission. This will require separate submission per carrier but as you will not be touching the MOD or MIF these extra submissions will be relatively cheap.
The last option is to use a server - from your application open a TCP/IP connection to this server and identify the carrier according to the IP address from which the connetion is established. Obviously, you will have to know the IP range of every carrier.
I would also suggest you take a look at:
http://brewforums.qualcomm.com/showthread.php?t=1834
Krishna

As far as I know there is no reliable way to determine the carrier. You can try and use the combination of MNC + MCC but this will only work partially mainly in cases you do not have more than one carrier at a given country (i.e. you will not be able to use this methid to differentiate between US carriers).
Another alternative is to include a text file which identifies the carrier in your submission. This will require separate submission per carrier but as you will not be touching the MOD or MIF these extra submissions will be relatively cheap.
The last option is to use a server - from your application open a TCP/IP connection to this server and identify the carrier according to the IP address from which the connetion is established. Obviously, you will have to know the IP range of every carrier.
I would also suggest you take a look at:
http://brewforums.qualcomm.com/showthread.php?t=1834
Krishna

Tried the IP route. Turns out carriers lease IP addresses from service providers and thus IPs get shared across carriers.

Tried the IP route. Turns out carriers lease IP addresses from service providers and thus IPs get shared across carriers.

Hi,
It's a bad idea to use the carrier IP. The carrier can change it for many reasons!
Try to use the ITAPI_GetStatus().
:)

Hi,
It's a bad idea to use the carrier IP. The carrier can change it for many reasons!
Try to use the ITAPI_GetStatus().
:)