php 生产中的Firebase

uinbv5nw  于 2023-08-02  发布在  PHP
关注(0)|答案(1)|浏览(143)

firebase php-sdk for laravel它在我的测试站点上运行得很好,在localhost上,但在具有相同凭据的prod上运行得很好。示例:我验证了相同的fcm令牌Firebase::messaging()->validateRegistrationTokens('fLaGUygupk9NkwcHkHyrsM:APA91bH7Y0QgNQ4XcHGWA8OC8i-FqBQ2nAKnv0P-BQhJp_kFPMsGOSTM8k8XJQawYCu9Anh24Yw5fN1aJoV8ATugdW-Epn-Lqow_39IahaXVL9Hhpqlkk_i1PHjgn0yRHOZPq6URI_7D'),并且在测试站点上我有这个

Array
(
    [valid] => Array
        (
            [0] => fLaGUygupk9NkwcHkHyrsM:APA91bH7Y0QgNQ4XcHGWA8OC8i-FqBQ2nAKnv0P-BQhJp_kFPMsGOSTM8k8XJQawYCu9Anh24Yw5fN1aJoV8ATugdW-Epn-Lqow_39IahaXVL9Hhpqlkk_i1PHjgn0yRHOZPq6URI_7D
        )

    [unknown] => Array
        (
        )

    [invalid] => Array
        (
        )

)

字符串
但在prod -这个

Array
(
    [valid] => Array
        (
        )

    [unknown] => Array
        (
        )

    [invalid] => Array
        (
        )

)


我创建了新的密钥,新的令牌,但结果是一样的

uidvcgyl

uidvcgyl1#

问题解决了。您需要在firebase配置中禁用cache_store。

相关问题