如何知道离子2中的设备是否已在代码中注册?我目前有这个:
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);
});
}