xtrinch / fcm-django

FCM Django: Send push notifications via django to websites, iOS & android mobile devices through FCM (Firebase Cloud Messaging)
http://fcm-django.readthedocs.io/
MIT License
775 stars 196 forks source link

the message has been delivered, But why Error has occured? #34

Closed yenoss closed 7 years ago

yenoss commented 7 years ago
Traceback (most recent call last):
  File "/home/--/--/--/.py", line 182, in send_push_to_user
    device.send_message(title, content)
AttributeError: 'NoneType' object has no attribute 'send_message'

any help would be appreciated.

xtrinch commented 7 years ago

More info about package & python versions required.

yenoss commented 7 years ago

okay, here!

fcm-django==0.2.11 Python 3.5.2

Please comment to me, if you need more.

xtrinch commented 7 years ago

pyfcm version also please

yenoss commented 7 years ago

of course.

pyfcm==1.3.1

xtrinch commented 7 years ago

I think you will have to examine your own code further, because the error is actually in your code.

yenoss commented 7 years ago

Im rechecking my Code

and I found the wrong code in service business logic.

Thank you for your kindness.

have a good day!