How to know if the device in ionic 2 is registered or not in the code? I currently have this:
private registerToken(){
this.push.register().then((t: PushToken) => {
return this.push.saveToken(t,{
ignore_user: true
});
}).then((t: PushToken) => {
console.log('Token saved:', t.token);
});
}