Dim no As NativeObject
no = no.Initialize("CTTelephonyNetworkInfo").RunMethod("new", Null).RunMethod("subscriberCellularProvider", Null)
Dim iso As String = no.GetField("isoCountryCode").AsString
Log(iso)
It will return null if there is no sim card or the device is in airplane mode.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.