Send Firebase Push Notification using PHP

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ต.ค. 2024
  • Send firebase push notification via php to android, ios, native, hybrid or ionic mobile app. Buy me a cofee : www.buymeacoff...
    Ionic 3 Tutorials: • Ionic 3 Tutorial #1 Cr...
    Codeigniter tutorials: • Codeigniter Tutorial #...

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

  • @thinktwicetechnology2905
    @thinktwicetechnology2905 ปีที่แล้ว

    its always return 404 Page Not Found

  • @thisarachathuranga2229
    @thisarachathuranga2229 ปีที่แล้ว

    Is that free? Firebase cloud?

  • @discutible
    @discutible 4 ปีที่แล้ว +2

    i cannot see legacy server key, do i need to use instead of the server key? thanks

  • @discutible
    @discutible 4 ปีที่แล้ว +1

    where is the full code?

  • @mchenrypastorelli5917
    @mchenrypastorelli5917 5 ปีที่แล้ว +4

    hello, how can I change the notification method to send all users?

    • @keciatoptopkecia5237
      @keciatoptopkecia5237 3 ปีที่แล้ว

      Instead of using the device ID, just put the string " '/topics/topic_name'
      Then you need to go to "index.js" file (you get this file when you follow the steps to install firebasex Cordova) and call the function "subscribe ();"
      You need to write "subscribe ();" inside the function "onDeviceReady()"
      Then, go to the function subscribe (),(which is also inside index.js)
      And write your topic_name in:
      FirebasePlugin.subscribe("topic_name".......
      Done.

  • @redolentofmark
    @redolentofmark 4 ปีที่แล้ว +1

    Instructions unclear; ended the MCP's control over the mainframe

  • @ayahuskacorporation8137
    @ayahuskacorporation8137 4 ปีที่แล้ว

    Selamlar Mikail, uygulama içerisinden bir butona basıldığında herkese bildirim gitmesini nasıl yapabiliriz?

  • @sheringreen6019
    @sheringreen6019 5 ปีที่แล้ว +1

    Hi, I want to send notification to all mobile devices with out registration id of specific mobile devices then what is the change in this code?

    • @microcode
      @microcode  5 ปีที่แล้ว

      Hello. Add subscribe notification code on register method.

  • @musicmiddle6766
    @musicmiddle6766 3 ปีที่แล้ว

    How to set icon bro plz tell me🥺🥺🥺

  • @davidm6370
    @davidm6370 4 ปีที่แล้ว

    what is registration id, you have copied from console?

  • @dutchwebswebsites6057
    @dutchwebswebsites6057 4 ปีที่แล้ว +1

    Awesome video! quick and on point!

  • @mayursancheti4664
    @mayursancheti4664 3 ปีที่แล้ว

    how do you get regsitration id for $to

  • @vijaykumar-sf1kb
    @vijaykumar-sf1kb 5 ปีที่แล้ว +1

    Hello boss please make a video one signal notification using codeigniter

  • @carlosgaleanohn
    @carlosgaleanohn 4 ปีที่แล้ว +1

    Gracias este código lo use hace 6 años... solo tenia que modificar la ruta al firebase :) me salvaste mucho tiempo!!!

    • @MansiniMB
      @MansiniMB ปีที่แล้ว

      hola, como seria para enviar un mensaje en especifico de usuarios registrados ya en una tabla sus keys?

  • @joelbialluch5559
    @joelbialluch5559 5 ปีที่แล้ว +2

    Thank you for sharing this valuable knowledge! appreciating!

  • @techdistribution168
    @techdistribution168 4 ปีที่แล้ว +1

    you music make me dance

    • @microcode
      @microcode  4 ปีที่แล้ว +1

      Welcome)

    • @moali6657
      @moali6657 3 ปีที่แล้ว

      What is this music, it's so nice

  • @nameinthefield
    @nameinthefield 3 ปีที่แล้ว

    Thank you for this code will give credits to your channel.

  • @riderOfSoul
    @riderOfSoul 4 ปีที่แล้ว

    it dosnt work on ios

  • @promedgrupomedicointernaci536
    @promedgrupomedicointernaci536 6 ปีที่แล้ว +3

    how to get the registration id ?

    • @desarrollolibre
      @desarrollolibre 6 ปีที่แล้ว

      Hello, in your app Android put this FirebaseInstanceId.getInstance().token stackoverflow.com/questions/37329917/getting-gcm-registration-id-using-firebase

    • @iamcisneros
      @iamcisneros 5 ปีที่แล้ว

      Install github.com/fechanique/cordova-plugin-fcm on your project, the cordova run android (with an android device connected to computer usb) when the app runs on your device open chrome://inspect/#devices (using chrome) and click on "inspect" so you can see the console of your cordova app there you can see the id :)

  • @marioa.jimenez4570
    @marioa.jimenez4570 5 ปีที่แล้ว

    how make get id token web, you have scripts

  • @WiseWeeabo
    @WiseWeeabo 5 ปีที่แล้ว

    Can someone tell me if it's possible to set notification flags like ongoing_event (aka sticky notification) using FCM like this?

  • @sajeee_1
    @sajeee_1 5 ปีที่แล้ว +1

    Thanks you

  • @macodex3178
    @macodex3178 6 ปีที่แล้ว +3

    You are my hero

  • @saw7212
    @saw7212 3 ปีที่แล้ว

    Thank you bro

  • @rebuds
    @rebuds 6 ปีที่แล้ว

    how about sending the notif to all of our app user? do we need to specify the registrationId of device?

    • @Kallaon
      @Kallaon 5 ปีที่แล้ว

      it always goes to all users

  • @arnabmunshi
    @arnabmunshi 4 ปีที่แล้ว

    how to make schedule notification through php ?

  • @k.venkatanagakruthik4597
    @k.venkatanagakruthik4597 4 ปีที่แล้ว

    How to send to multiple users by their keys plz help me

    • @nugieadi4801
      @nugieadi4801 4 ปีที่แล้ว

      Store the key on the table then looping it on your foreach ...

    • @k.venkatanagakruthik4597
      @k.venkatanagakruthik4597 4 ปีที่แล้ว

      @@nugieadi4801 it's not working bro

  • @leonardorodrigofernandez2230
    @leonardorodrigofernandez2230 5 ปีที่แล้ว +1

    Me funciono perfecto, muchas gracias

    • @astral8439
      @astral8439 4 ปีที่แล้ว

      Bro, una pregunta, el registration ID, que es el codigo que se le asigna en el "to" quien te lo entrega? Gracias.

  • @luckylukhmannurhakim2582
    @luckylukhmannurhakim2582 5 ปีที่แล้ว

    Its work.... wooohh thanks...... :)

  • @CAZADORELITE1
    @CAZADORELITE1 5 ปีที่แล้ว

    si ya tienes el serviceworker preparado y solo vienes por el envio desde php este codigo aun funciona 06/10/2019

    • @microcode
      @microcode  5 ปีที่แล้ว

      yes

    • @chind0na
      @chind0na 5 ปีที่แล้ว

      Me compartes el sw.js por favor? El mío no muestra notificación en segundo plano (navegador cerrado).
      Uso Codeigniter. Pero puedo adaptar tu PHP y js para lo mío.

    • @wanicity6435
      @wanicity6435 4 ปีที่แล้ว

      @@microcode hello, how can I change the notification method to send all users?

    • @microcode
      @microcode  4 ปีที่แล้ว

      @@wanicity6435 add topics for registration method and change server side send method to parameter same topics value

  • @jebachristyzerosoft4042
    @jebachristyzerosoft4042 6 ปีที่แล้ว +1

    How do we get the registration id for each devices

    • @iamcisneros
      @iamcisneros 5 ปีที่แล้ว +1

      Install github.com/fechanique/cordova-plugin-fcm on your project, the cordova run android (with an android device connected to computer usb) when the app runs on your device open chrome://inspect/#devices (using chrome) and click on "inspect" so you can see the console of your cordova app there you can see the id :)

  • @du_njal_ka8768
    @du_njal_ka8768 6 ปีที่แล้ว

    can used this method when to add the item to database send notification

    • @microcode
      @microcode  6 ปีที่แล้ว +1

      du_nj al_ka yes you can use method for this event. You must write user firebase id to db firstly

  • @ArrowNissen
    @ArrowNissen 6 ปีที่แล้ว

    thx

  • @edlb10
    @edlb10 4 ปีที่แล้ว

    thank's man

  • @jaydeeprathod2464
    @jaydeeprathod2464 5 ปีที่แล้ว +1

    Hello please put sample code too

    • @microcode
      @microcode  5 ปีที่แล้ว

      hello here i did not save code. PLease see video only.

  • @sag_rus
    @sag_rus 6 ปีที่แล้ว

    Thanks. Very helpfull