когда я вызываю firebase.getToken (), он возвращает неопределенное значение или ноль
import { Firebase } from '@ionic-native/firebase';
constructor(private firebase: Firebase) { }
...
this.firebase.getToken()
.then(token => console.log(`The token is ${token}`)) // save the token server-side and use it to push notifications to this device
.catch(error => console.error('Error getting token', error));
this.firebase.onNotificationOpen()
.subscribe(data => console.log(`User opened a notification ${data}`));
this.firebase.onTokenRefresh()
.subscribe((token: string) => console.log(`Got a new token ${token}`));
Установленные платформы:
android 8.0.0
Доступные платформы:
browser ~5.0.1
ios ~4.5.4
osx ~4.0.1
windows ~6.0.0