Skip to content

.getToken() method on AngularFireMessaging fails too early on notification mermission. #2762

@nmggithub

Description

@nmggithub

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 set to default.

Debug output

None / N/A

Expected behavior

As is the case with the regular firebase.messaging() object, it requests the permission when called.

Actual behavior

The notification permission is not requested, and the observable returns null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions