humhub / fcm-push

Enables your users to receive push notifications from your network.
4 stars 5 forks source link

Error Code "NotRegistered" while sending FCM message #7

Closed LiveLaughLearn closed 1 year ago

LiveLaughLearn commented 3 years ago

I implemented the module a few weeks ago and it worked kind of great. Unfortunately it seems that new messages send via the FCM API now return an error code

yii\base\Exception: Response is not ok!Array ( [multicast_id] => someInteger [success] => 0 [failure] => 5 [canonical_ids] => 0 [results] => Array ( [0] => Array ( [error] => NotRegistered ) [1] => Array ( [error] => NotRegistered ) [2] => Array ( [error] => NotRegistered ) [3] => Array ( [error] => NotRegistered ) [4] => Array ( [error] => NotRegistered ) ) ) in /usr/www/users/path/to/humhub/protected/modules/fcm-push/components/FcmApi.php:69

Checked the documentation under https://firebase.google.com/docs/cloud-messaging/http-server-ref#error-codes and it seems that this error shouldnt really occur. I recreated and set a new secret to make sure the old did not turn invalid.

Anyone else facing similar issues with the module at the moment? Can someone maybe pinpoint where to start debugging the module in those cases?