I added an Image with the error I am not able to see the this variable in the then method of the firebase.Promise. I also can not see _this.
this._messaging.getToken().then( (currentToken) => {
if (currentToken) {
console.log('Ok!!!!!');
// _notificationToken = currentToken;
} else {
console.log('No Instance ID token available. Request permission to generate one.');
}
})
.catch(function (err) {
console.log('An error occurred while retrieving token. ', err);
});