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 #...
its always return 404 Page Not Found
Is that free? Firebase cloud?
i cannot see legacy server key, do i need to use instead of the server key? thanks
where is the full code?
hello, how can I change the notification method to send all users?
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.
Instructions unclear; ended the MCP's control over the mainframe
Selamlar Mikail, uygulama içerisinden bir butona basıldığında herkese bildirim gitmesini nasıl yapabiliriz?
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?
Hello. Add subscribe notification code on register method.
How to set icon bro plz tell me🥺🥺🥺
what is registration id, you have copied from console?
Awesome video! quick and on point!
how do you get regsitration id for $to
Hello boss please make a video one signal notification using codeigniter
Gracias este código lo use hace 6 años... solo tenia que modificar la ruta al firebase :) me salvaste mucho tiempo!!!
hola, como seria para enviar un mensaje en especifico de usuarios registrados ya en una tabla sus keys?
Thank you for sharing this valuable knowledge! appreciating!
Welcome
you music make me dance
Welcome)
What is this music, it's so nice
Thank you for this code will give credits to your channel.
it dosnt work on ios
how to get the registration id ?
Hello, in your app Android put this FirebaseInstanceId.getInstance().token stackoverflow.com/questions/37329917/getting-gcm-registration-id-using-firebase
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 :)
how make get id token web, you have scripts
Can someone tell me if it's possible to set notification flags like ongoing_event (aka sticky notification) using FCM like this?
Thanks you
Welcome
You are my hero
Thanks
Thank you bro
How to set icon bro plz tell me
how about sending the notif to all of our app user? do we need to specify the registrationId of device?
it always goes to all users
how to make schedule notification through php ?
use cron jobs
How to send to multiple users by their keys plz help me
Store the key on the table then looping it on your foreach ...
@@nugieadi4801 it's not working bro
Me funciono perfecto, muchas gracias
Bro, una pregunta, el registration ID, que es el codigo que se le asigna en el "to" quien te lo entrega? Gracias.
Its work.... wooohh thanks...... :)
si ya tienes el serviceworker preparado y solo vienes por el envio desde php este codigo aun funciona 06/10/2019
yes
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.
@@microcode hello, how can I change the notification method to send all users?
@@wanicity6435 add topics for registration method and change server side send method to parameter same topics value
How do we get the registration id for each devices
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 :)
can used this method when to add the item to database send notification
du_nj al_ka yes you can use method for this event. You must write user firebase id to db firstly
thx
thank's man
Welcome
Hello please put sample code too
hello here i did not save code. PLease see video only.
Thanks. Very helpfull