首页 > 解决方案 > Kreait fcm 错误 Firebase 项目 [项目名称] 未配置

问题描述

我正在尝试来自https://github.com/kreait/laravel-firebase的库 fcm ,这是我的配置文件。

   'credentials' => [
            'file' => public_path('serviceaccount.json'), // config service account from firebase

            /*
             * If you want to prevent the auto discovery of credentials, set the
             * following parameter to false. If you disable it, you must
             * provide a credentials file.
             */
            'auto_discovery' => true,
        ],

这是我对邮递员的结果测试。

Kreait\Firebase\Exception\InvalidArgumentException:Firebase 项目 [KANTIN-UNISBA] 未配置。在第 41 行的文件 /path/to/application/vendor/kreait/laravel-firebase/src/FirebaseProjectManager.php 中**

标签: laravelfirebasefirebase-cloud-messaging

解决方案


推荐阅读