Recently i upgraded my Ionic 4 project to Ionic 5 and Angular 9. I updated all other packages also. Then some feedbacks reported about notification problems. I noticed that:
When i install app first time, it wants permission for notifications and that time this code works:
token = await this.firebase.getToken();
But works only once. After login or reopen app this code never works.
Not only this code, other FCM codes does not work either:
So i can not get notifications either. (I tried with non-user specific token that i got at first install)
First i suspected about FirebaseX. So i tried last version (9.1.1-cli) then my old version (7.0.1) and nothing changed. Now i use 8.0.1.