Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

392
Visualizações
How to use FCM pkg on Django?

I'm using the fcm_django package to send notifications API to Firebase but I have some confusion about those two concepts on Firebase like so: (registeration_id and device_id)

https://fcm-django.readthedocs.io/en/latest/#setup

I placed the "server_key" of Firebase to registration_id but don't understand what does device_id means and what is the value I should put on it?

after answering the above questions I tried to send notification from Django by the admin page on Django by creating registration_id which is "server_key" and defining the type which is a "web", but when I created this object I didn't see any message has been sent to Firebase cloud.

Note:-

I want to send notifications to only one device not many users.

so, can anyone help me to achieve this mission succeeded? Thanks in advance

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

The device_id is a token that is generated by the Firebase SDK on each device/app combination that wants to receive messages from FCM.

To learn how to access this token, have a look at the documentation for Android, Web and iOS.

Once you have the token on the specific client, you will need to send it to a place where the fcm-django package can then also access it; typically a cloud hosted database, such as the Realtime Database or Firestore that are also part of Firebase.

From there your Django can then get the token, and pass it to the fcm-django API.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda