0

如何知道 ionic 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);
    });
}
4

0 回答 0