title: Get user id when registers
body: <p>I am getting familiar with the cordova/phonegap sdk for <a href="https://documentation.onesignal.com/v2.0/docs/phonegap--cordova-sdk-api#idsReceivedCallBack" rel="nofollow">onesignal</a>. But I don't know how to get the userid when he registers..</p>
  
  <p>I can get all ids:</p>
  
  <pre><code>window.plugins.OneSignal.init("my-key",
                           {googleProjectNumber: "my-id"},
                           notificationOpenedCallback);
  
  window.plugins.OneSignal.getIds(function(ids) {
  did = ids.userId;
  window.localStorage.setItem("did",ids.userId);
  });
  </code></pre>
  
  <p>But I don't know how to get the current user id, or match agains one the ids</p>