🔥 Generate Firebase Access Token (Bearer Token) for Push Notifications: Step-by-Step Guide 🚀

Поділитися
Вставка
  • Опубліковано 15 жов 2024

КОМЕНТАРІ • 76

  • @AcademyICT
    @AcademyICT 19 днів тому +2

    Thank you very very, this works like magic.

  • @atiqurrehman0109
    @atiqurrehman0109 3 дні тому +1

    I want to send notifications using my react native app how can we get access token for react native app?

  • @gurisembhi
    @gurisembhi 11 днів тому +1

    Thanks

  • @ВитСкор-х8й
    @ВитСкор-х8й 25 днів тому +1

    Where in your code you determine $signature? I don't understand(

  • @NXTFOXDevelopment
    @NXTFOXDevelopment 27 днів тому +1

    Exchanging JWT for access token is not returning anything, why would that be?

    • @TechnicalRajni
      @TechnicalRajni  27 днів тому

      @@NXTFOXDevelopment need to check but you try another videos in the playlist will help u

  • @princeverma.997
    @princeverma.997 27 днів тому +1

    Error on line 41 error is access_token is null
    Responce is =>
    Error during cURL request: SSL certificate problem: unable to get local issuer certificate

  • @NikhilPawar151
    @NikhilPawar151 13 днів тому +1

    Thank you very much. It is working fine.

    • @TechnicalRajni
      @TechnicalRajni  13 днів тому

      You're welcome! 😁🤗

    • @NikhilPawar151
      @NikhilPawar151 11 днів тому +1

      @@TechnicalRajni How to send custom data in notification. For example if I have to send article id or any custom parameter.

    • @TechnicalRajni
      @TechnicalRajni  11 днів тому

      @@NikhilPawar151 okay 🆗

  • @abidunais2613
    @abidunais2613 15 днів тому +1

    You saved my day 🥰😍🤩

  • @tanaybdcom
    @tanaybdcom 3 місяці тому +1

    You are generating fcm token using next js project . is there any video for plain javascript or jquery and html to generate the fcm token ?

  • @keanhor4596
    @keanhor4596 3 місяці тому +1

    Hi brother ! How can we receive messages of that in php or laravel ?

    • @TechnicalRajni
      @TechnicalRajni  3 місяці тому

      @@keanhor4596 In php already I have video

  • @rajnikantChoudhary-e2n
    @rajnikantChoudhary-e2n 4 місяці тому +2

    The access token will be automatically refreshed by the Firebase Admin SDK when it expires. You don't need to handle the token expiration manually as the SDK takes care of it for you. This script will get a new token if the current one is expired and will use it to send the notification.

  • @andresvalenzuela160
    @andresvalenzuela160 Місяць тому +1

    Where do you set your SenderId? Im getting the following error
    message = "SenderId mismatch", status = "PERMISSION_DENIED"

    • @TechnicalRajni
      @TechnicalRajni  Місяць тому

      @@andresvalenzuela160 this is at Android iOS

    • @andresvalenzuela160
      @andresvalenzuela160 Місяць тому +1

      @@TechnicalRajni I managed to fix that error, I was using an expired token to send the message. Now I'm getting another error 😅Its "Auth error from APNS or Web Push Service" with status: "UNAUTHENTICATED" 🤔 and it must be the Web Push service since I dont use APNS. Do you have any idea as to what this could be?

    • @TechnicalRajni
      @TechnicalRajni  Місяць тому

      @@andresvalenzuela160 recently i have updated js and php code check it may be vapid key

  • @pak_kaspul
    @pak_kaspul Місяць тому +1

    you make good tutorial but the source code more important to us for testing, just make sure no wrong code, thanks!

    • @TechnicalRajni
      @TechnicalRajni  Місяць тому

      @@pak_kaspul but atleast you should try if any issues I will share

  • @mubashirkappan1775
    @mubashirkappan1775 Місяць тому +1

    can i get your git repo or the code for referencing

    • @TechnicalRajni
      @TechnicalRajni  Місяць тому

      @@mubashirkappan1775 yes but any issue you are facing

    • @pak_kaspul
      @pak_kaspul Місяць тому

      you make good tutorial but the source code more important to us for testing, just make sure no wrong code, thanks!

  • @MustofaYuliRachmad
    @MustofaYuliRachmad 3 місяці тому +1

    $signature not found in the file php. where i get the parameter?

  • @MustofaYuliRachmad
    @MustofaYuliRachmad 3 місяці тому +1

    {"error":"invalid_grant","error_description":"Invalid JWT: Failed audience check."} show the error when i get access_token. please help

  • @shishir-i4b
    @shishir-i4b Місяць тому +1

    just like this token how to pass array of token and send notification to multiple user

    • @TechnicalRajni
      @TechnicalRajni  Місяць тому

      @@shishir-i4b I have made the tutorial can you check ✅

    • @shishir-i4b
      @shishir-i4b Місяць тому +1

      @@TechnicalRajni can u provide me a name of video

    • @TechnicalRajni
      @TechnicalRajni  Місяць тому

      @@shishir-i4b 😢

  • @empiregood9225
    @empiregood9225 Місяць тому +1

    class in android?

  • @game_withus
    @game_withus Місяць тому +1

    Nice video

  • @fredabila
    @fredabila 4 місяці тому +1

    pllease can you share me the php code for sending the notification

    • @TechnicalRajni
      @TechnicalRajni  4 місяці тому

      Already upload check my new firebase playlist

    • @fredabila
      @fredabila 4 місяці тому +1

      @@TechnicalRajni I mean the php code. Is it on github?

    • @TechnicalRajni
      @TechnicalRajni  4 місяці тому

      @@fredabila already uploaded check my playlist

    • @fredabila
      @fredabila 4 місяці тому +1

      @@TechnicalRajni i have checked. the code is in the video. i need to copy it not type from scratch

    • @TechnicalRajni
      @TechnicalRajni  4 місяці тому

      @@fredabila wow 😮

  • @prashanna8784
    @prashanna8784 3 місяці тому +1

    why are you doing partial work in php and node js ,so confusing !!!!!!!!

    • @TechnicalRajni
      @TechnicalRajni  3 місяці тому

      @@prashanna8784 no full tutorial done on node js php

    • @prashanna8784
      @prashanna8784 3 місяці тому +1

      @@TechnicalRajni so basically you ran some php codes to generate the access token which will further be used in calling the api, am I right?

    • @TechnicalRajni
      @TechnicalRajni  3 місяці тому

      @@prashanna8784 yes

  • @adamfiqrie8350
    @adamfiqrie8350 3 місяці тому

    Good tutorial , can you share code php ? i want to refer your code .

  • @rajnikantChoudhary-e2n
    @rajnikantChoudhary-e2n 4 місяці тому +1

    Nice ☺

  • @ungrothana
    @ungrothana 3 місяці тому +1

    Source code pls

  • @code-nation
    @code-nation 2 місяці тому +1

    Pls can I get the php script ?

    • @TechnicalRajni
      @TechnicalRajni  2 місяці тому

      @@code-nation please check my new firebase playlist

  • @aqilsworld
    @aqilsworld 3 місяці тому

    i want to send push notifiction via flutter app how to send

  • @tanaybdcom
    @tanaybdcom 3 місяці тому +1

    2nd video

    • @TechnicalRajni
      @TechnicalRajni  3 місяці тому

      @@tanaybdcom means

    • @tanaybdcom
      @tanaybdcom 3 місяці тому +1

      @@TechnicalRajni , nothing serious ... your video title dont have any serial ... i am serializing for myself to find out the videos easily :P

    • @TechnicalRajni
      @TechnicalRajni  3 місяці тому

      @@tanaybdcom okay