title: Is there any way to determine if the iphone is roaming?
body: <p>I am working on an iPhone application and would really like to determine if the device is roaming so that I can intelligently avoid costing my users expensive connections if out of their home network.  </p>
  
  <p>The application I am writing is for jailbroken phones, however I would prefer to use standard SDKs if possible.</p>
  
  <p>Here is what I've already found:</p>
  
  <p><strong>1. Apple SDKs:</strong>
  In the apple documentation, I found the promise in Apple's SCNetworkReachability API.  The API provides access to such things as whether you are on a WIFI or a cell phone network, whether a network connection is currently established, etc.   However searching the SCNetworkReachability API reference pdf for 'roam' or 'roaming' both turn up nil.  So does their sample code.</p>
  
  <p><strong>2.  Grep of a Jailbroken iPhone FS:</strong>
  The preferences -> general -> networking tab is where users can turn on or off their roaming.  Looking in the plist file for this ("/Applications/Preferences/Network.plist") I was able to find the following references:</p>
  
  <pre><code>        PostNotification = "com.apple.commcenter.InternationalRoamingEDGE.changed";
          cell = PSSwitchCell;
          default = 1;
          defaults = "com.apple.commcenter";
          key = InternationalRoamingEDGE;
          label = "EDGE_ROAMING_TOGGLE";
          requiredCapabilities =             (
              telephony
          );
  </code></pre>
  
  <p>This is certainly a lead, as it appears I can sign up for notifications that the user has changed the InternationalRoaming settings.  Still, I'm not certain how to turn this into the knowledge that they are in fact, presently roaming.  </p>
  
  <p><strong>3.  Check the class dumped sources of SpringBoard:</strong>
  I've dumped the classes of SpringBoard using <a href="http://www.codethecode.com/projects/class-dump/" rel="noreferrer">class-dump</a>.  I was unable to find any references to 'roam' or 'roaming'</p>
  
  <p><strong>4.  Obviously I started by checking at SO for this:</strong>
  Couldn't find anything related.</p>
  
  <p>Further steps:  Does anyone have any advice here? 
  I know this is possible.  Apple clearly has made it very difficult to find however.  I highly doubt this is possible without using a private framework.  (such as CoreTelephony).  As this is a jailbroken app, I may resort to screen-scraping the the carrier name with injected code in the SpringBoard, but I would really rather prefer not to go that route.  Any advice much appreciated.  Thanks.</p>