1

I'm trying to send push notifications with my Django App and the library django-push-notifications to specific Android devices using FCM.

I always get the same error:

{'multicast_id': 7577544316157180554, 'success': 0, 'failure': 1, 'canonical_ids': 0, 'results': [{'error': 'InvalidRegistration', 'original_registration_id': <token>}]}

I'm using a registration_id provided to me from an actual Android Device. I've tested that registration_id using the Firebase dashboard to send a test message and it works perfectly there. But my Django request never works.

Is there anything else I'm missing from configuration? Do I need to enable something else to be able to send the push from besides the test tool of Firebase?

fedest
  • 1,190
  • 3
  • 15
  • 35
  • *'original_registration_id': *: is that literal or did you remove the token and replace it with ? What I'm asking is if somewhere a string representation of an object is sent where it should be the string value of an attribute of that object, so `str(token)` versus `str(token.hash)`. –  May 06 '21 at 10:50

0 Answers0