humhub / fcm-push

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

Error fcm push web notification using firebase module #13

Closed antho2305 closed 1 year ago

antho2305 commented 2 years ago

What steps will reproduce the problem? Push notifications are not send to android phone

What is the expected result? Android user should receive notifications

What do you get instead? Nothing error in Yii exception

Additional info

ERREUR  Mon, 30 May 2022 12:43:05 +0200 application
yii\base\Exception: Response is not ok!Array

(
[multicast_id] => 2628565875445366920
[success] => 0
[failure] => 2
[canonical_ids] => 0
[results] => Array
(
[0] => Array
(
[error] => MismatchSenderId
)

[1] => Array
(
[error] => MismatchSenderId
)

)

)
in /home/sc1infoconne/site/espoirdelame.org/social/protected/modules/fcm-push/components/FcmApi.php:69
Stack trace:
#0 /home/sc1infoconne/site/espoirdelame.org/social/protected/modules/fcm-push/components/NotificationTargetProvider.php(32): humhub\modules\fcmPush\components\FcmApi->sendNotification()
#1 /home/sc1infoconne/site/espoirdelame.org/social/protected/humhub/modules/notification/targets/MobileTarget.php(56): humhub\modules\fcmPush\components\NotificationTargetProvider->handle()
#2 /home/sc1infoconne/site/espoirdelame.org/social/protected/humhub/modules/notification/targets/BaseTarget.php(161): humhub\modules\notification\targets\MobileTarget->handle()
#3 /home/sc1infoconne/site/espoirdelame.org/social/protected/humhub/modules/notification/components/NotificationManager.php(89): humhub\modules\notification\targets\BaseTarget->send()
#4 /home/sc1infoconne/site/espoirdelame.org/social/protected/humhub/modules/notification/jobs/SendBulkNotification.php(38): humhub\modules\notification\components\NotificationManager->sendBulk()
#5 /home/sc1infoconne/site/espoirdelame.org/social/protected/humhub/modules/queue/ActiveJob.php(33): humhub\modules\notification\jobs\SendBulkNotification->run()
#6 /home/sc1infoconne/site/espoirdelame.org/social/protected/vendor/yiisoft/yii2-queue/src/Queue.php(246): humhub\modules\queue\ActiveJob->execute()
#7 /home/sc1infoconne/site/espoirdelame.org/social/protected/vendor/yiisoft/yii2-queue/src/cli/Queue.php(147): yii\queue\Queue->handleMessage()
#8 /home/sc1infoconne/site/espoirdelame.org/social/protected/vendor/yiisoft/yii2-queue/src/drivers/db/Queue.php(83): yii\queue\cli\Queue->handleMessage()
#9 [internal function]: yii\queue\db\Queue->yii\queue\db\{closure}()
#10 /home/sc1infoconne/site/espoirdelame.org/social/protected/vendor/yiisoft/yii2-queue/src/cli/Queue.php(117): call_user_func()
#11 /home/sc1infoconne/site/espoirdelame.org/social/protected/vendor/yiisoft/yii2-queue/src/drivers/db/Queue.php(93): yii\queue\cli\Queue->runWorker()
#12 /home/sc1infoconne/site/espoirdelame.org/social/protected/vendor/yiisoft/yii2-queue/src/drivers/db/Command.php(56): yii\queue\db\Queue->run()
#13 [internal function]: yii\queue\db\Command->actionRun()
#14 /home/sc1infoconne/site/espoirdelame.org/social/protected/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()
#15 /home/sc1infoconne/site/espoirdelame.org/social/protected/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams()
#16 /home/sc1infoconne/site/espoirdelame.org/social/protected/vendor/yiisoft/yii2/console/Controller.php(182): yii\base\Controller->runAction()
#17 /home/sc1infoconne/site/espoirdelame.org/social/protected/vendor/yiisoft/yii2/base/Module.php(552): yii\console\Controller->runAction()
#18 /home/sc1infoconne/site/espoirdelame.org/social/protected/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction()
#19 /home/sc1infoconne/site/espoirdelame.org/social/protected/vendor/yiisoft/yii2/console/Application.php(147): yii\console\Application->runAction()
#20 /home/sc1infoconne/site/espoirdelame.org/social/protected/vendor/yiisoft/yii2/base/Application.php(384): yii\console\Application->handleRequest()
#21 /home/sc1infoconne/site/espoirdelame.org/social/protected/yii(29): yii\base\Application->run()
#22 {main}
ArchBlood commented 2 years ago

See the following discussion on the community site; https://community.humhub.com/comment/perma?id=36054

antho2305 commented 2 years ago

See the following discussion on the community site; https://community.humhub.com/comment/perma?id=36054

The link doesn't work...

ArchBlood commented 2 years ago

See the following discussion on the community site; https://community.humhub.com/comment/perma?id=36054

The link doesn't work...

You have to have an account and be a member of the space.