Skip to content

Instantly share code, notes, and snippets.

@codediodeio

codediodeio/fcm.ts

Created Aug 3, 2018
Embed
What would you like to do?
FCM Bug
// 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