Device to device Firebase cloud messaging 📱 📲

Farhan Roy
Jan 7, 2021

Send push notification device to device without server directly

Article Cover

Hi, this time I will share an interesting tutorial about firebase cloud messaging.Usually, we send a notification using FCM, it has to go through the server then the server will send it to the destination device.
It takes a long time, so there is more cost to incur

More or less like the following picture

https://developpaper.com/development-of-firebase-fcm-server/

In this opportunity, I have the source code for how to send notifications directly from device to other device directly

push.kt

You have to fill in the server key from firebase and change it to the code above. If you want to read full code, you can visit my github repository

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Farhan Roy
Farhan Roy

Written by Farhan Roy

Seorang yang selalu mengharapkan ridhonya

No responses yet

Write a response