Closed bartkim0426 closed 2 years ago
I am also getting the same issue. How can we solve it?
this is what I had tried
devices.send_message(title=self.title, body=self.description, click_action=self.link)
and the below error is coming on the production server
TypeError: send_message() missing 1 required positional argument: 'message'
@bartkim0426 How can we import Message? I used from fcm_django.messaging import Message, Notification but I am getting error is title invalid
from firebase_admin.messaging import Message, Notification
Also the docs have been updated and should now be correct.
from firebase_admin.messaging import Message, Notification
Also the docs have been updated and should now be correct.
Please update the example in readme as well.
After following documentation, I got the error below
After I checked the code, I found out that
message
argument is mandatory. (https://github.com/xtrinch/fcm-django/blob/bb239015f348c4b58fbd556adac2f11fd73c0e9f/fcm_django/models.py#L117)So is it should be changed into below?