Hi everyone,
Does anyone know a way to get the ISP from a Smartphone, knowing its IP Address?
Preferentially, one that would work for both iOS and Android?
If there are none, no free APIs or no forge components for this one.
How could I embed these fucntions for each platform?
Android:
TelephonyManager manager = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);String carrierName = manager.getNetworkOperatorName();
iOS:
(NSString *)carrierName { CTTelephonyNetworkInfo *netinfo = [[CTTelephonyNetworkInfo alloc] init]; CTCarrier *carrierInfo = [netinfo subscriberCellularProvider]; return [carrierInfo carrierName] ? [carrierInfo carrierName] : @"No Carrier Info"; }
Thanks in advance,
PS
Hi Pedro,
Have you tried looking at creating your own plugin to get the carrier name from the phone?
Maybe this can help https://www.npmjs.com/package/community-cordova-plugin-sim
Some documentation that can helpUsing Cordova Plugins
How to Create a Cordova Plugin from Scratch and Add to Your Low-Code Mobile App