Closed lumayara closed 5 years ago
Yes, you did not define updateMessage() inside your class, the code inside the notificationCallback is just an example taken from the demo of this repo. You have to write your own callback logic with your own methods. Take a look at the demo code if you want to reuse the updateMessage
function.
You can also try replacing this.updateMessage(
with alert(
or console.log(
in your code if you just want to see the notification body.
Thank you, @fthuin and @lini ! Now it works :)
I sent a message from Firebase and right away my emulator took me to an error:
Which platform(s) does your issue occur on?
Please, provide the following version numbers that your issue occurs with:
In my main.ts I have:
Is there anything I am doind wrong?