title: Can't get OneSignal user id (cordova)
body: <p>Can't get OneSignal user id. I get error "Cannot read property OneSignal of undefined null"</p>
  
  <pre><code>window.plugins.OneSignal
      .startInit(OneSingalID)
      .handleNotificationReceived(function (jsonData) {
          setTimeout(function () {
              removeNotications();
          }, 1000 * 60); // 1 min.
      })
      .handleNotificationOpened(notificationOpenedCallback)
      .inFocusDisplaying(window.plugins.OneSignal.OSInFocusDisplayOption.None)
      .endInit();
  
  window.plugins.OneSignal.getUserId(function (id) { // &lt;- error
      console.log(id)
  });
  </code></pre>
  
  <p>This one didn't work too:</p>
  
  <pre><code>window.plugins.OneSignal.getIds(function(ids) {
      console.log(ids);
  });
  </code></pre>