Firebase for notification and aws for backend and database

208 Views Asked by At

I am trying to implement a notification system in Django. I find the firebase quite easy which is as follow:

from fcm_django.models import FCMDevice

device = FCMDevice.objects.all()

Now in view:

device.send_message(title="Title", body="Message", icon=..., data={"test": "test"})

In settings:

FCM_DJANGO_SETTINGS = {
     # default: _('FCM Django')
    "APP_VERBOSE_NAME": "[string for AppConfig's verbose_name]",
     # true if you want to have only one active device per registered user at a time
     # default: False
    "ONE_DEVICE_PER_USER": True/False,
     # devices to which notifications cannot be sent,
     # are deleted upon receiving error response from FCM
     # default: False
    "DELETE_INACTIVE_DEVICES": True/False,
    # Transform create of an existing Device (based on registration id) into
                # an update. See the section
    # "Update of device with duplicate registration ID" for more details.
    "UPDATE_ON_DUPLICATE_REG_ID": True/False,
}

Now my question is, we are using AWS for the backend and also for the database. In this case can we use the firebase for notification? How do these two services aws and firebase work together? WIll there be any problem??

1

There are 1 best solutions below

10
On

Sending messages through Firebase Cloud Messaging is done through a REST API, which can be called from any platforms. Any libraries you'll find out there (including Firebase's own Admin SDKs) are just wrappers around that REST API.