【问题标题】:Firebase cloud messaging broadcast is determine by bundle ID or the firebase project (GoogleService-Info.plist)Firebase 云消息广播由捆绑 ID 或 firebase 项目 (GoogleService-Info.plist) 确定
【发布时间】:2021-07-04 13:35:08
【问题描述】:

我有 2 个 firebase 项目(具有相同的 bundle id)。

如果我使用 firebase 控制台云消息来广播消息(目标用户段为 iOS,bundle id 为 com.test.xxx),两个项目(不同的 GoogleService-Info.plist)的用户会收到通知吗?

问题:接收者是由bundle ID(iOS)还是应用的GoogleService-Info.plist决定的?

【问题讨论】:

    标签: ios firebase-cloud-messaging


    【解决方案1】:

    FCM 令牌基于 Firebase 项目 ID、设备令牌、捆绑包 ID 和许多其他详细信息。因此,如果您使用 Cloud Messaging API 广播消息,它只会被发送到包含来自该特定项目的 GoogleService-Info.plist 的应用程序,而不是发送到具有相同捆绑 ID 的所有应用程序。

    【讨论】:

    • 是的,我刚刚测试了一个新项目,并且只测试了包含来自该特定项目的 GoogleService-Info.plist 的应用程序,而不是具有相同捆绑 ID 的所有应用程序。但是,在旧项目中,我想知道为什么它不这样。
    猜你喜欢
    • 1970-01-01
    • 2020-12-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-07
    • 2021-02-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多