title: How to know register ionic 2
body: <p>How to know if the device in ionic 2 is registered or not in the code? I currently have this:</p>
  
  <pre class="lang-js prettyprint-override"><code>private registerToken(){
      this.push.register().then((t: PushToken) =&gt; {
          return this.push.saveToken(t,{
              ignore_user: true
          });
      }).then((t: PushToken) =&gt; {
          console.log('Token saved:', t.token);
      });
  }
  </code></pre>