title: Using Urban Airship & Phonegap, can't register device: "Device token is nil"
body: <p>From the newest example on git hub (https://github.com/urbanairship/phonegap-ua-push), with a shinny new build of Phonegap/Cordova's latest v2.3.0, we're having trouble on iOS registering a device with UA. We had no problem until we updated to the latest. We're registering the device like this:</p>
  
  <pre><code>function on_reg(error, pushID) {
      console.log("UA Registration complete.")
  }
  
  push = window.pushNotification
  push.registerEvent('registration', on_reg)
  </code></pre>
  
  <p>But every time we call that code, we get an error that says "<strong>Device token is nil. Registration will be attempted at a later time</strong>". Except that never happens.</p>
  
  <p>Here is the log:</p>
  
  <blockquote>
    <p>2013-01-09 17:38:29.378 Grouped[271:907] [D] -[UAPush
    updateRegistration] [Line 589] Checking registration state</p>
    
    <p>2013-01-09 17:38:29.380 Grouped[271:907] [D] -[UAPush
    updateRegistration] [Line 609] Device token is nil. Registration will
    be attempted at a later time</p>
    
    <p>2013-01-09 17:38:29.744 Grouped[271:907] [D] +[UAKeychainUtils
    getDeviceID] [Line 275] Retrieved device id info from keychain.</p>
    
    <p>2013-01-09 17:38:29.745 Grouped[271:907] [D] +[UAKeychainUtils
    getDeviceID] [Line 279] Device ID result is not nil.</p>
    
    <p>2013-01-09 17:38:29.746 Grouped[271:907] [D] +[UAKeychainUtils
    getDeviceID] [Line 288] Loaded Device ID:
    C1E75722-ED34-4513-BBA5-CB9EDEBBD117</p>
    
    <p>2013-01-09 17:38:29.747 Grouped[271:907] [D] +[UAKeychainUtils
    getDeviceID] [Line 289] Loaded Model Name: iPhone4,1</p>
    
    <p>2013-01-09 17:38:32.724 Grouped[271:907] [D] -[UAAnalytics
    requestDidSucceed:response:responseData:] [Line 461] Analytics data
    sent successfully. Status: 200</p>
  </blockquote>
  
  <p>What are we doing wrong? </p>