DEV Community

Gentrit Abazi
Gentrit Abazi

Posted on • Edited on

Use Firebase Cloud Messaging In Laravel

Alt Text

In many modern web applications, you need to implement real-time, live-updating user interfaces.

When we update data on the server, a message is typically sent over a connection to be handled by the client. So, you need a real-time channel or WebSocket connection to handle this.

Some Laravel Developers use Pusher to handle this problem. Instead, we are going to use Firebase Cloud Messaging.

What is Firebase Cloud Messaging ?

Firebase Cloud Messaging (FCM) is a cross-platform messaging solution that lets you reliably send messages at no cost.

Using FCM, you can notify a client app that a new email or other data is available to sync. You can send notification messages to drive user re-engagement and retention. For use cases such as instant messaging, a message can transfer a payload up to 4KB to a client app.

How does it work ?

An FCM implementation includes two main components for sending and receiving:

A trusted environment such as Cloud Functions for Firebase or an app server on which to build, target, and send messages.
An iOS, Android, or web (JavaScript) client app that receives messages via the corresponding platform-specific transport service.

How to use Firebase Cloud Messaging in Laravel ?

To send notifications or custom messages in Laravel via Firebase, at Kutia, we made a simple package to do this work easy and fast.

For installation and configuration please refer to the GitHub Link:

https://github.com/kutia-software-company/larafirebase

Image of AssemblyAI tool

Transforming Interviews into Publishable Stories with AssemblyAI

Insightview is a modern web application that streamlines the interview workflow for journalists. By leveraging AssemblyAI's LeMUR and Universal-2 technology, it transforms raw interview recordings into structured, actionable content, dramatically reducing the time from recording to publication.

Key Features:
🎥 Audio/video file upload with real-time preview
🗣️ Advanced transcription with speaker identification
⭐ Automatic highlight extraction of key moments
✍️ AI-powered article draft generation
📤 Export interview's subtitles in VTT format

Read full post

Top comments (1)

Collapse
 
ramagh profile image
rama-gh

Hi, i'm tying that package, buen when get the notif on my phone is not with the title and body i'm declared, any idea to resolve? Thx (sorry my english)

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay