Title: .getToken() method on AngularFireMessaging fails too early on notification mermission. · Issue #2762 · angular/angularfire · GitHub
Open Graph Title: .getToken() method on AngularFireMessaging fails too early on notification mermission. · Issue #2762 · angular/angularfire
X Title: .getToken() method on AngularFireMessaging fails too early on notification mermission. · Issue #2762 · angular/angularfire
Description: Version info Angular: 11.2.0 Firebase: 8.2.7 AngularFire: 6.1.4 How to reproduce these conditions Steps to set up and reproduce Simply call .getToken() on an AngularFireMessaging object when the notification permission in the browser is ...
Open Graph Description: Version info Angular: 11.2.0 Firebase: 8.2.7 AngularFire: 6.1.4 How to reproduce these conditions Steps to set up and reproduce Simply call .getToken() on an AngularFireMessaging object when the no...
X Description: Version info Angular: 11.2.0 Firebase: 8.2.7 AngularFire: 6.1.4 How to reproduce these conditions Steps to set up and reproduce Simply call .getToken() on an AngularFireMessaging object when the no...
Opengraph URL: https://github.com/angular/angularfire/issues/2762
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":".getToken() method on AngularFireMessaging fails too early on notification mermission.","articleBody":"\u003c!--\r\n\r\nIMPORTANT! YOU MUST FOLLOW THESE INSTRUCTIONS OR YOUR ISSUE WILL BE CLOSED.\r\n\r\nThank you for contributing to the Angular and Firebase communities!\r\n\r\nHave a usage question?\r\n=======================\r\nWe get lots of those and we love helping you, but GitHub is not the best place for them and they will be closed. Here are some resources to get help:\r\n\r\n- Go through the Developer's Guide: https://github.com/angular/angularfire2#developer-guide\r\n\r\nIf the official documentation doesn't help, try asking through our officially supported channels:\r\n\r\n- Firebase Google Group: https://groups.google.com/forum/#!forum/firebase-talk\r\n- Stack Overflow: https://stackoverflow.com/questions/tagged/angular (include the firebase and angularfire tags, too!)\r\n\r\n*Please avoid double posting across multiple channels!*\r\n\r\nThink you found a bug?\r\n=======================\r\nYeah, we're definitely not perfect! Please use the bug report template below and include a minimal repro when opening the issue.\r\n\r\nHave a feature request?\r\n========================\r\nGreat, we love hearing how we can improve our products! Remove the template below and\r\nprovide an explanation of your feature request. Provide code samples if applicable. Try to\r\nthink about what it will allow you to do that you can't do today? How will it make current\r\nworkarounds straightforward? What potential bugs and edge cases does it help to avoid?\r\n\r\n--\u003e\r\n\r\n\r\n### Version info\r\n\r\n\u003c!-- What versions of the following libraries are you using? Note that your issue may already\r\nbe fixed in the latest versions. --\u003e\r\n\r\n**Angular:** 11.2.0\r\n\r\n**Firebase:** 8.2.7\r\n\r\n**AngularFire:** 6.1.4\r\n\r\n### How to reproduce these conditions\r\n\r\n**Steps to set up and reproduce**\r\nSimply call `.getToken()` on an AngularFireMessaging object when the notification permission in the browser is set to `default`.\r\n\r\n### Debug output\r\n\r\nNone / N/A\r\n\r\n### Expected behavior\r\n\r\n[As is the case](https://firebase.google.com/support/release-notes/js#fcm_4) with the regular `firebase.messaging()` object, it requests the permission when called.\r\n\r\n### Actual behavior\r\n\r\nThe notification permission is not requested, and the observable returns null.\r\n","author":{"url":"https://github.com/nmggithub","@type":"Person","name":"nmggithub"},"datePublished":"2021-02-21T04:32:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/2762/angularfire/issues/2762"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:42c788ff-faf2-dcd4-a492-e027d75fcafd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A8FC:1E1ACC:165B479:1E0C3BD:6A5B93A1 |
| html-safe-nonce | fbaa458769248ba812b9f9965045e468b478927bddf348b7a9ba31408f2832e5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEZDOjFFMUFDQzoxNjVCNDc5OjFFMEMzQkQ6NkE1QjkzQTEiLCJ2aXNpdG9yX2lkIjoiMTYyMDY2NzE1NzQ0MDA3NDY1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a28ef21de233a19a3c55005e08ba51ec52944b0379a63fa67e5349e562a407df |
| hovercard-subject-tag | issue:812769681 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angularfire/2762/issue_layout |
| twitter:image | https://opengraph.githubassets.com/904ed1cb07f5bca1da34428c96296afcd79f928a8f8e87284549807367b4ddd8/angular/angularfire/issues/2762 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/904ed1cb07f5bca1da34428c96296afcd79f928a8f8e87284549807367b4ddd8/angular/angularfire/issues/2762 |
| og:image:alt | Version info Angular: 11.2.0 Firebase: 8.2.7 AngularFire: 6.1.4 How to reproduce these conditions Steps to set up and reproduce Simply call .getToken() on an AngularFireMessaging object when the no... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nmggithub |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angularfire git https://github.com/angular/angularfire.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 49453413 |
| octolytics-dimension-repository_nwo | angular/angularfire |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49453413 |
| octolytics-dimension-repository_network_root_nwo | angular/angularfire |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width