Created
August 3, 2018 21:46
-
-
Save codediodeio/72b9ea96d97cedb3582db30b51a291b7 to your computer and use it in GitHub Desktop.
FCM Bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// BUG: never emits token on first permission granted | |
this.fcm.getToken.subscribe(console.log); | |
// Works Fine | |
this.fcm.requestPermission | |
.pipe( | |
switchMap(v => { | |
return this.fcm.requestToken; | |
}) | |
) | |
.subscribe(console.log); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment