Learn how to Push Notification in Realtime using Laravel and Firebase Cloud Messaging. Repo : github.com/suhasrkms/push-not... Laravel Firebase All in One : github.com/suhasrkms/Lara-Fire
Пікірлер: 70
@ogunniranolusola56102 жыл бұрын
As an update to the tutorial, you might not find the Fcm automatically enabled as Google suggests the FCM API V1 for sending cloud messaging. To follow through with the tutorial, you might have to manually enable the Fcm application so as to get access to the SERVER KEY
@ahmedbdiwy60053 ай бұрын
how i made it
@alisleem16262 жыл бұрын
keep up the amazing work ))
@marwenkhefacha68872 жыл бұрын
thinx bro amazing work
@titoash14182 жыл бұрын
sir can you make it by vue js ?
@alixcan2 жыл бұрын
Thanks for this amazing tutorial. Is this work with multiple device for same user ?
@sevenstac2 жыл бұрын
Yes it will work 😊
@aymanmalhattami2 жыл бұрын
Great
@anshuljha13322 жыл бұрын
can you develop a selfhosted notification system for my wordpress website using FCM or somthing els for unlimited subscriber
@zakariaasarhabil29352 жыл бұрын
Thanks
@abolfazlrastegar-div3 жыл бұрын
would you please tell me how to make this with pusher push notification and laravel?
@sevenstac3 жыл бұрын
You mean you don't want the firebase ( FCM )
@abolfazlrastegar-div3 жыл бұрын
@@sevenstac yes, i don't want to use the firebase. (pusher.com)
@zuzka1228 Жыл бұрын
do you have any idea how to get notifications in sleep mode? 'priority'=>'high' doesn't work
@sevenstac Жыл бұрын
Have no idea, will see through and reply if I get it.
@zuzka1228 Жыл бұрын
@@sevenstac PWA app can't because android has battery saver... Gets push every 15min (if screen is off). So real-time notifications are not possible.
@ogunniranolusola56102 жыл бұрын
Can this be used for realtime notification streamed to an android or ios device using flutter for example
@sevenstac2 жыл бұрын
No you cannot because flutter uses dart not php. But I am sure there is different method for flutter as well
@ogunniranolusola56102 жыл бұрын
@@sevenstac What am saying is for an application that uses Laravel as a backend api and Flutter mobile. Can the realtime notification that is pushed to the firebase be also accessible by a Flutter application, perhaps through an sdk that implements firebase
@sevenstac2 жыл бұрын
I am not sure how flutter works but if it's linked with firebase yes it will send the notification for mobile
@voneatpen60602 жыл бұрын
I got dd output, but no notification dialog showing.
@sevenstac2 жыл бұрын
Sometimes the notification gets delayed wait for some time. Check on Edge because some browsers does not show the notification correctly. PS : Notification comes to the browser which you have used to login credentials.
@seemaithape99982 жыл бұрын
Thanks for this tutorial, Notification is not getting for mozilla browser. How we can fix this?
@sevenstac2 жыл бұрын
It's supports only modern browsers try updating or using edge. And we cannot fix this as the firebase sends the notification it's browser part of work to display it.
@AhmedSaadHassan2 жыл бұрын
how to check if user register before and hid button ?
@sevenstac2 жыл бұрын
If the user is already registered, he cannot use the same account to register another one ... email should be unique. And what button should we hide?
@AhmedSaadHassan2 жыл бұрын
@@sevenstac i mean with button "Allow for notification" after user allow notification how i can hide this button?
@adejulvian2 жыл бұрын
in my machine doesnt work. it shows internal server error on post. can help me with this error?
@sevenstac2 жыл бұрын
Can you elaborate ... When does the error pop? Is the dd showing the address? Have you installed gRPC?
@adejulvian2 жыл бұрын
@@sevenstac i just following your tutorial and change code with my fcm config. when i try to submit form, it show internal server error 500 on dev tools and pop up not showed. should i instal gPRC?
@sevenstac2 жыл бұрын
It depends where are you storing device tokens in SQL or firebase if firebase you need gRPC And does your error states like " {"multicast_id":XXXX"success":0,"failure":1,"results":[{"error":"InternalServerError"}]} "
@yassaryelurkar36312 жыл бұрын
what's the background music?
@sevenstac2 жыл бұрын
All That - Bensound
@badmusabdulsalam5931 Жыл бұрын
Pls What if I select all data and I want to notify each Id I press
@sevenstac Жыл бұрын
There is 'device_token' variable in HomeController, you can add all the users token and direct it to the sendNotification().
@basemovic76003 жыл бұрын
i want add badge counter to apns may u help me add it "not static" dynamic
@sevenstac3 жыл бұрын
I don't know anything about apns , will sure help you out with the others.
@basemovic76003 жыл бұрын
@@sevenstac its for iphone notifications u can make counter of notification to show it out of the app like facebook and whatsapp i found the soln if u need me share it ?
@sevenstac3 жыл бұрын
Yaa I was surfing about it , it can be done but the problem here is I don't have a iphone. 🙁🙁 And it's a web app and what is the use of implementing badge for it ??
@basemovic76003 жыл бұрын
@@sevenstac for show theris notifications the users didn't open it yet and if he open this will disapear
@sajidhaniff75582 жыл бұрын
hi, how do i use click_action in this application?
@sevenstac2 жыл бұрын
Do you mean click Events ??
@sajidhaniff75582 жыл бұрын
@@sevenstac yep.
@sevenstac2 жыл бұрын
Use javascript 😌
@satyammodi2 жыл бұрын
How to send notification for those user want to actvate puch notification without login
@sevenstac2 жыл бұрын
We need to store the logged in device information in database and provide notification as mentioned in the video firebase-php.readthedocs.io/en/stable/cloud-messaging.html The above link will help you with it.
@satyammodi2 жыл бұрын
@@sevenstac ok My question is in this video we see if example i am open website where you configur notification ... And if i want to get notification from your website i need to login with name email id password. If it possible i just only click allow notification .. My device token saved in to your database ... And whenever you send to all notification. I'll get notification.
@GabrielSilva-nz1rl2 жыл бұрын
Did this notification works on mobile devices ?
@sevenstac2 жыл бұрын
Yes
@annaferlich5831 Жыл бұрын
yes bad dont work :D
@jamesfaber64603 ай бұрын
Does this work for iOS and android devices?
@sevenstac3 ай бұрын
It works in all modern web browser .. and has nothing to do with OS Make sure you create the user account in that device. Because the notification goes to the register user device .
@franciscocaldeira28122 жыл бұрын
This has a limit right?
@sevenstac2 жыл бұрын
Sry i didn't get you ??
@abdalrhmanalshafei9203 жыл бұрын
Please send the code
@sevenstac3 жыл бұрын
github.com/suhasrkms/push-notification
@GabrielSilva-nz1rl2 жыл бұрын
Its giving The "unable to register The default service worker" :(((
@sevenstac2 жыл бұрын
Are you talking about mobile device
@GabrielSilva-nz1rl2 жыл бұрын
@@sevenstac no, desktop
@GabrielSilva-nz1rl2 жыл бұрын
@@sevenstac its giving The same error thats giving in your Chrome in The tutorial
@sevenstac2 жыл бұрын
Are you taking about 6:50 error
@GabrielSilva-nz1rl2 жыл бұрын
@@sevenstac It worked, that was The Xampp Server. But Its not working in mobile Chrome 😭
@gadozx75 Жыл бұрын
In android work?
@sevenstac Жыл бұрын
Yes it works on Android, but u need to use in web browser, not application.
@gadozx75 Жыл бұрын
@@sevenstac but what if i already have laravel running as a pwa? wouldn't it work anyway?
@sevenstac Жыл бұрын
@@gadozx75 Yeah that will also work
@steenrabol23784 ай бұрын
background music is absolutely annoying
@sevenstac4 ай бұрын
"Press 'M' would solve this problem. 💡"
@brighness_of_islam Жыл бұрын
i am getting this error, any one solved this error before? "{"multicast_id":2247801628580971547,"success":0,"failure":6,"canonical_ids":0,"results":[{"error":"InvalidRegistration"},{"error":"InvalidRegistration"},{"error":"InvalidRegistration"},{"error":"InvalidRegistration"},{"error":"InvalidRegistration"},{"error":"InvalidRegistration"}]}"