Created
March 22, 2019 03:58
-
-
Save jotapeluiz/44d17b917a2bc827a456e4314f63df5e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| const messaging = firebase.messaging(); | |
| function requestToken() { | |
| messaging.getToken().then(function(token) { | |
| console.log("Token:", token); | |
| }).catch(function(error) { | |
| console.error("Um erro ocorreu ao recuperar o token:", error); | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment