Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 1.45 KB

File metadata and controls

49 lines (30 loc) · 1.45 KB

Firebase Device to Device Push Notification

About This Project ( Must Read )

This project is based on "Lapit Chat App Series" Tutorial, all the commands are customized according to the Tutorial series. To have better understanding on the "index.js" read full details below or you can also watch Tutorial here :

Part - 21 : Firebase Push Notification with Android

Part - 22 : Firebase Push Notification with Android

Part - 23 : Firebase Push Notification with Android

Or you can Browser the full "Lapit - Chat App series" here :

Lapit Chat App - Firebase - Android Studio

Downloading "index.js" File

You can download and use index.js in your Firebase Functions Folder.

Check the index file here : index.js

Firebase Database Structure

Users Table :

- Users
  - user_push_id
    - device_token : user_device_token
    - name : user_name

Notification Table :

- notifications
  - to_user_id
    - notification_id
      - from : from_user_id

Important :

Currently this method works with user who is logged in a single device instead of multiple. I'll be adding code for Multiple device login too, in future.