Additional firebase testing updates.
This commit is contained in:
@@ -130,6 +130,13 @@ export default class AppContainer extends Component {
|
||||
navigator.serviceWorker.addEventListener("message", (message) => {
|
||||
console.log("Comp Did Mount", message);
|
||||
notification["info"]({ message: JSON.stringify(message.data) });
|
||||
navigator.serviceWorker
|
||||
.getRegistration()
|
||||
.then((registration) =>
|
||||
registration.showNotification(
|
||||
"Comp Did" + JSON.stringify(message.data)
|
||||
)
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user