Комментарии:
👌
ОтветитьBro ek live MERN STACK p project sikha do
ОтветитьWill this work in react native?
ОтветитьMaking extra revenue from the same amount of traffic is something that most publishers overlook! All you need is additional ad network and various ad formats – for example, I use MonadPlug Push Notifications, In-page Push and Native ads in combination with Google AdSense Ads... Revenue boosted by 500% in easy few steps!
ОтветитьMan ! Love you so much ! I've passed hours looking for a solution about "where I've to put the sw.js file" ! Was in the public folder of my meteorJS app ! :D
You have a new follower ! :D
Great Tutorial. How can I create notification on click?
ОтветитьI got console print error
ОтветитьI forked the repo, followed his tutorial exactly. no browser notification was shown. it did not work.
ОтветитьNot getting any notification dude ,followed exactly same thing
Ответитьdidn't work
ОтветитьThanks for the instructions, but I also get a token in the console, but I don't get notifications. I did everything right from the video, I have also turn on notifications... Any update how to fix? Anyone :)
ОтветитьFirebase: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp() (app/no-app).
can you please tell who to solve this error?
works for ios ?
ОтветитьHow can we use this in production so that we can send push notifications to all devices where our Web site is running?
ОтветитьFor those who couldn't get notification
Here is what worked for me,
1) console.firebase.google.com> firebase-cloud-messaging/*project name*/>settings>Cloud Messaging Tab> Copied the server key
2) In firebase-messaging-sw.js file, inside
firebase.initializeApp({
'apiKey': "/*Pasted Server Key here*/
Registration failed - push service error I keep getting this error and everything is done correctly
ОтветитьGot Error : DOMException: Failed to execute 'importScripts'
Ответитьwil this token remain same or will b changed after reload ?
Ответитьthanks bro..
ОтветитьRecommended
ОтветитьI followed the tutorial and this works for development (npm run start) but doesnt work when create a build for production because i use the default create react app pwa confugurations ( serviceWorkerRegistration.register(); ). There is any way to enable this in production too?
ОтветитьDoesn't work on ios devices?
ОтветитьIt´s necessary to do a class component?
Ответитьcan u make a similar video on Quasar?
ОтветитьThank you so much for this video, it really help me to solve the problem in my project!!!!!
ОтветитьFirebase is easy, and it will not work in Safari, try implementing Apple push notifications xD
ОтветитьHello it seems that when i do yarn add firebase, i don't get a firebase route from which to import firebase, i can only install from firebase/app
ОтветитьHow do you programmatically send the notification. Say from the backend
Ответитьit show error in firebase
Ответитьit is not working for me. console log show me error
Ответитьcan anybody helps me with the code? I did the same but it catches error
import React, { Component } from "react";
import firebase from "./firebase";
export default class App extends Component {
constructor(props) {
super(props);
this.state = {};
}
componentDidMount() {
const messaging = firebase.messaging();
messaging
.requestPermission()
.then(() => {
return messaging.getToken();
})
.then((token) => {
console.warn("Token : ", token);
})
.catch(() => {
console.log("Error");
});
}
render() {
return <div>this is my first fcm notification.</div>;
}
}
Will this code work for react native?
ОтветитьNotifications are not coming to my website
ОтветитьIs this notification popups every time the user browse the website ?
ОтветитьSource code URL is fake
ОтветитьThank you so much for this video, it really help me to solve the problem in my project!!!!!
ОтветитьThe notifications are arriving correctly but when you click on them instead of opening my site it opens a blanck page how do I solve this?
ОтветитьHow do I get a notification when a change happens in Firestore?
Ответитьsource code ?
Ответить