Hi, I’m very interested in trying out Fortumo’s Corona plugin for carrier bllling. However, since Fortumo doesn’t support every carrier (e.g. in US, they support the four big ones + US Cellular, but certainly not every), we need a way to find out what carrier the handset is on, so that if the carrier isn’t supported, we can direct users to alternative options.
I’ve actually asked in other Corona forums if we could get access to carrier information, but now with Fortumo there is yet another reason for this.
Fortumo or Corona – can you add a way to get the carrier information? It’s very, very easy in both Android and iOS:
In native Android:
TelephonyManager tmgr = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE));
String carrierName = tmgr.getNetworkOperatorName();
In native iOS:
CTTelephonyNetworkInfo *networkInfo = [[[CTTelephonyNetworkInfo alloc] init] autorelease];
CTCarrier *carrier = [networkInfo subscriberCellularProvider];
NSString *carrierName = [carrier carrierName];