79400700

Date: 2025-01-30 17:22:23
Score: 0.5
Natty:
Report link

The issue is with

await admin.messaging().sendToDevice(sentTo, payload);

Yes but it is because you haven't initialised admin, only imported it.

Add admin.initializeApp() at the top and you should be fine. Fingers Crossed!

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Manolis Dame