angular / angularfire

Angular + Firebase = ❤️
https://firebaseopensource.com/projects/angular/angularfire2
MIT License
7.7k stars 2.19k forks source link

fireMessaging.tokenChanges emit wrong(not equeal) fcm token after fireMessaging.requestToken #3531

Open Okz1 opened 5 months ago

Okz1 commented 5 months ago

Version info

*Angular:17.3.3*

*Firebase:-*

*AngularFire:17.1.0*

*Other (e.g. Ionic/Cordova, Node, browser, operating system):browser*

How to reproduce these conditions

1) Create subscription on fireMessaging.tokenChanges, can be several 2) Run fireMessaging.requestToken 3) Compare fcm token from tokenChanges & requestToken

Currently, we have different results, also each new subscription generates a new fcm token + additional HTTP requests

Expected behavior

Same fcm tokens + only required numbers of HTTP requests

Actual behavior

Different fcm tokens

google-oss-bot commented 5 months ago

This issue does not seem to follow the issue template. Make sure you provide all the required information.