Push notifications with React and Firebase | Firebase Push Notifications In React

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ก.ค. 2023
  • How to Implement Push Notifications in React Using Firebase
    Sending Push Notifications by Using Firebase Cloud Messaging
    Push notifications with React and Firebase
    Firebase Push Notifications In React
    Sending Push Notifications by Using Firebase Cloud
    Firebase Push Notifications In React
    Please do like share and comment if you like the video please do hit like and if you have any query please write it comment box
    NestJs Tutorial • How To install Nest.js...
    You can support me by buying a coffee for me
    ko-fi.com/N4N0JZBBN
    Please do subcribe my other video tutorials
    React Native Tutorial : • SDK location not found...
    ReactJS Tutorial : • Setting Up React Local...
    Linux Tutorials : • How to Increase File U...
    Jquery Tutorial : • What is jQuery
    Html & Css Tutorial : • Introduction to HTML5 ...
    Wordpress Tutorial : • How to install wordpre...
    Javascript Tutorial : • JavaScript Hello World...
    Magento 2 Tutorials : • How to remove a MassA...
    Github Tutorials : • Why version control? |...
    October CMS Tutorial : • Builder plugin - Octob...
    Bash Scripting Tutorial : • Shell Scripting Tutori...
    Jenkins Beginner Tutorial : • Jenkins Beginner Tutor...
    Apollo Client React Js : • Apollo Client React Tu...
    Wordpress Tutorial In Hindi : • What Is Wordpress? - E...
    MongoDb Tutorial : • How to Insert a Docume...
    Bootstrap 5 Tutorial in Hindi : • Bootstrap 5 Tutorial i...
    Xero Tutorial For Beginners : • Xero Tutorial For Begi...
    React Material UI = • React Material UI - In...
    Thanks for watching
    Vue Js Tutorial : • Install Vue.js in Ubun...
    Angular 14 Tutorial : • How to install Angular...
    MongoDb Tutorial : • How to Insert a Docume...
    Mysql Tutorial For Beginners : • How to connect to MySQ...
    AWS Tutorials: • How to Create S3 Bucke...
    Php Tutorial for Beginners : • How can I send an emai...
    Nest
    Have a Great Day !!!

ความคิดเห็น • 82

  • @shadmanfatin777
    @shadmanfatin777 6 หลายเดือนก่อน +1

    Thank you for teaching us. Very difficult stuff. You are a genius bro. May you go a long way Insha Allah ♥♥♥

  • @muneeburrehman7761
    @muneeburrehman7761 2 หลายเดือนก่อน +1

    I am unable to receive foreground notifications on my react app since it is over HTTP, I want to add ngrok as the callback URL in the FCM. How can I do that?

    • @TechnicalRajni
      @TechnicalRajni  2 หลายเดือนก่อน

      My code is also on http

  • @user-sp7fw8kn4l
    @user-sp7fw8kn4l 4 หลายเดือนก่อน +1

    i can only see the changes when i click the save button after i come back to vs code ,if i visit any other page then the notification wont work i need to press the save button again in the vs code .what is the issue

  • @abufaishal5753
    @abufaishal5753 7 หลายเดือนก่อน +1

    in my project i am allowing user to install multiple pwa and for each pwa app i am generating new fcm token once and everything is working fine but for android the case is
    when i install 2nd pwa and generate token by allowing permission then the first pwa is not receiving notification do you know reason why ?. for ios both pwa receiving notification

    • @TechnicalRajni
      @TechnicalRajni  7 หลายเดือนก่อน

      May be you are not sending notification to both check both generated token

  • @javhaasuhochir8126
    @javhaasuhochir8126 3 หลายเดือนก่อน

    Hello. when background message received I want to change a context state. but since background message listener is in the public folder I cannot do anything normally do in src folder. Is it available to do that?

    • @TechnicalRajni
      @TechnicalRajni  3 หลายเดือนก่อน

      What you want to achieve

    • @javhaasuhochir8126
      @javhaasuhochir8126 3 หลายเดือนก่อน

      @@TechnicalRajni i have a sidebar. in it there is a Notification section and it has badge(that counts new messages). and that message variable is in a context. i should update that context badge variable.

  • @abufaishal5753
    @abufaishal5753 7 หลายเดือนก่อน +1

    are you generating token everytime website loads ? and if yes then can you tell me the reason why ?

    • @TechnicalRajni
      @TechnicalRajni  7 หลายเดือนก่อน +1

      No why token will be different while reload

  • @yousifmobark6981
    @yousifmobark6981 18 วันที่ผ่านมา +1

    i want to pass json data from the server and receive it and make some logic later how to do it

    • @TechnicalRajni
      @TechnicalRajni  18 วันที่ผ่านมา

      @@yousifmobark6981 make a key data pair and react will use that key

  • @fahiyangtech
    @fahiyangtech 8 หลายเดือนก่อน +1

  • @mansigupta549
    @mansigupta549 2 หลายเดือนก่อน +1

    Firebase messaging is giving error that it's unable to register th default service worker, what should be done at this moment

    • @TechnicalRajni
      @TechnicalRajni  2 หลายเดือนก่อน

      Service workers should be registered to get notification

  • @user-ok3mz7ch7d
    @user-ok3mz7ch7d 11 หลายเดือนก่อน +1

    Hi can i get the code also which version u r using

    • @TechnicalRajni
      @TechnicalRajni  11 หลายเดือนก่อน

      "firebase": "^9.22.0",

  • @rajeevkumarsingh1718
    @rajeevkumarsingh1718 9 หลายเดือนก่อน +1

    If it’s not working using using Google api then it of no use for me

    • @TechnicalRajni
      @TechnicalRajni  2 หลายเดือนก่อน

      It will work with fcm

  • @shadmanfatin777
    @shadmanfatin777 6 หลายเดือนก่อน +1

    Bro can you pls tell where can i get the official documentation of this fcm for reactJs?

    • @TechnicalRajni
      @TechnicalRajni  6 หลายเดือนก่อน

      No official documents

    • @shadmanfatin777
      @shadmanfatin777 6 หลายเดือนก่อน +1

      ​@@TechnicalRajniwhy not?! 🥺 i want to apply features like when user clicks on the notification, it will redirect to the website. How can i do that?

    • @TechnicalRajni
      @TechnicalRajni  6 หลายเดือนก่อน

      @@shadmanfatin777 when you get notifications just add redirection click

    • @shadmanfatin777
      @shadmanfatin777 6 หลายเดือนก่อน

      ​​@@TechnicalRajnii dont know how to add redirection click to a notification :/

  • @rfryanfavour4369
    @rfryanfavour4369 9 หลายเดือนก่อน +2

    BRO DELETE SOME OF YOUR FIREBASE DEMO PROJECTS PLEASE DONT KILL GOOGLE FOR US... ANY WAYS THANKS FOR THE TUTORIAL

    • @TechnicalRajni
      @TechnicalRajni  9 หลายเดือนก่อน

      Why I will delete something wrong 😔

  • @user-pt3oi4wp7w
    @user-pt3oi4wp7w 6 หลายเดือนก่อน +1

    Getting this error: "An error occurred while retrieving the token. FirebaseError: Messaging: We are unable to register the default service worker. Failed to register a ServiceWorker for scope"

    • @TechnicalRajni
      @TechnicalRajni  6 หลายเดือนก่อน

      You need to check the keys properly

    • @user-pt3oi4wp7w
      @user-pt3oi4wp7w 6 หลายเดือนก่อน +1

      This issue was fixed after adding the service worker to the public folder. But still did not get the notification.

    • @TechnicalRajni
      @TechnicalRajni  6 หลายเดือนก่อน

      Which browser you are checking 🤔

    • @user-pt3oi4wp7w
      @user-pt3oi4wp7w 6 หลายเดือนก่อน

      @@TechnicalRajni Chrome and firebox both.

    • @HamdaouiWassim
      @HamdaouiWassim 4 หลายเดือนก่อน

      @@user-pt3oi4wp7w if u still have this error just create a file named "service-worker.js" on your public folder

  • @afsalafzi6600
    @afsalafzi6600 11 หลายเดือนก่อน +1

    Can we send notification using nodejs

  • @user-hy2sr9wi1p
    @user-hy2sr9wi1p 7 หลายเดือนก่อน +2

    Man I watched all this just for you to show me that you are sending a notification directly from their test form? you serious?

    • @TechnicalRajni
      @TechnicalRajni  7 หลายเดือนก่อน

      What happen

    • @user-hy2sr9wi1p
      @user-hy2sr9wi1p 7 หลายเดือนก่อน +1

      @@TechnicalRajni I don't want to use firebase test to send notifications, I want my notification box to appear whenever my user posts something, you don't show us how to send title and body to firebase so that it notifies my users.

    • @TechnicalRajni
      @TechnicalRajni  7 หลายเดือนก่อน

      @@user-hy2sr9wi1p ohh I need to update the tutorial then

  • @Jefferson4026
    @Jefferson4026 4 หลายเดือนก่อน +1

    The api fcm need autorization value , what is that? Im your video doesnt show

    • @TechnicalRajni
      @TechnicalRajni  4 หลายเดือนก่อน

      Yes it requires let me check

  • @user-lw7st9bx8p
    @user-lw7st9bx8p 11 หลายเดือนก่อน +2

    show error The script has an unsupported MIME type ('text/html').

    • @TechnicalRajni
      @TechnicalRajni  11 หลายเดือนก่อน

      Need to check or you can check settings

    • @bezerrac
      @bezerrac 11 หลายเดือนก่อน +1

      i got the same message, so the code cant generate a token, did u resolve then?

    • @biaali4590
      @biaali4590 11 หลายเดือนก่อน +1

      If you are using reactjs add service worker file in public folder

    • @HuyChanel1415
      @HuyChanel1415 9 หลายเดือนก่อน

      @@biaali4590 How to add service worker file in public folder, please.

    • @biaali4590
      @biaali4590 9 หลายเดือนก่อน

      @@HuyChanel1415 do you have firebase-messaging-sw.js file?

  • @ZuhaibSubhanRayan
    @ZuhaibSubhanRayan 5 หลายเดือนก่อน +1

    hi there, i need the sample code ? can you share me github link ?

    • @TechnicalRajni
      @TechnicalRajni  5 หลายเดือนก่อน

      Yes sure but you need to try first if any issue then sure I will share ☺️

  • @MMCGlobalPCAA
    @MMCGlobalPCAA 6 หลายเดือนก่อน +1

    i m getting notification on every browser but not in safari

    • @TechnicalRajni
      @TechnicalRajni  6 หลายเดือนก่อน

      I haven't check on safari

  • @olanazly4412
    @olanazly4412 10 หลายเดือนก่อน +1

    how to subscribe To Topic with react and firebase?

    • @TechnicalRajni
      @TechnicalRajni  10 หลายเดือนก่อน

      Didn't get your point

    • @olanazly4412
      @olanazly4412 10 หลายเดือนก่อน

      I want to send multiple devices from firebase and subscription topics

    • @olanazly4412
      @olanazly4412 10 หลายเดือนก่อน

      Messaging: This browser doesn't support the API's required to use the Firebase SDK. (messaging/unsupported-browser).
      in mac mobile i get this message
      how to fix this ?
      @@TechnicalRajni

  • @sinistergaming513
    @sinistergaming513 6 หลายเดือนก่อน +1

    caN YOU PROVIDE THE GIT HUB LINK FOR THIS

    • @TechnicalRajni
      @TechnicalRajni  6 หลายเดือนก่อน

      Any issues you are facing

    • @sinistergaming513
      @sinistergaming513 6 หลายเดือนก่อน

      @@TechnicalRajni yes triggering notification on the fire base using my fcm tocken is not toasting the notification on the app

    • @TechnicalRajni
      @TechnicalRajni  6 หลายเดือนก่อน

      @@sinistergaming513 check that token with firebase notification coming into the console

    • @sinistergaming513
      @sinistergaming513 6 หลายเดือนก่อน +1

      @@TechnicalRajni yeah i fixed it....idk why but when i tested on edge its qorking....something issue with the chrome i think

  • @react.dev.28
    @react.dev.28 10 หลายเดือนก่อน +1

    I want react code

    • @TechnicalRajni
      @TechnicalRajni  10 หลายเดือนก่อน

      Please let me know any issue u are facing

  • @abhilekhsingh8463
    @abhilekhsingh8463 7 หลายเดือนก่อน +1

    plz share the code

    • @TechnicalRajni
      @TechnicalRajni  7 หลายเดือนก่อน

      what issue you are facing ?

  • @tirielross
    @tirielross 9 หลายเดือนก่อน +1

    i can't understand u video bro

  • @user-ss1ji9kw6m
    @user-ss1ji9kw6m 2 หลายเดือนก่อน +1

    bro you are making hard to see the code. why cant you just share the code. Anyway in this video, after you send the post api through postman, no notification is received in your video itself. you are just making us fool to watch the complete video. But the actual output is none.

    • @TechnicalRajni
      @TechnicalRajni  2 หลายเดือนก่อน

      Okay I am so sorry 😔 I will upload full video again with all your doubts related to code not showing and all then you can check I have video regarding nextjs 14 firebase push notifications you can also check

    • @user-ss1ji9kw6m
      @user-ss1ji9kw6m 2 หลายเดือนก่อน +1

      @@TechnicalRajni i can understand why you are not sharing the code, but see atleast show the code clearly.

    • @user-ss1ji9kw6m
      @user-ss1ji9kw6m 2 หลายเดือนก่อน +1

      i want to send push local notification using react and firebase cloud messaging. Could you tell me which video should i watch to make it work.

    • @TechnicalRajni
      @TechnicalRajni  2 หลายเดือนก่อน

      @@user-ss1ji9kw6m no issue I will definitely work on it thanks 🙏

    • @user-ss1ji9kw6m
      @user-ss1ji9kw6m 2 หลายเดือนก่อน +1

      @@TechnicalRajni do you have any group or chat?