Firebase云消息传递不适用于Android上的Build变体

Firebase云消息传递不适用于Android上的Build变体,第1张

概述我在Firebase中有2个项目:nl.companyname和nl.companyname.acc: 这是我的build.gradle: flavorDimensions "type"productFlavors { acceptance { dimension="type" applicationIdSuffix ".acc" vers 我在Firebase中有2个项目:nl.companyname和nl.companyname.acc:

这是我的build.gradle:

flavorDimensions "type"productFlavors {    acceptance {        dimension="type"        applicationIDSuffix ".acc"        versionnameSuffix "-acc"    }    production {        dimension="type"        applicationIDSuffix ""        versionnameSuffix ""    }}

下载Google-services.Json在目录中:
应用程序/谷歌-services.Json

AndroID Studio已登录Google帐户并已同步:

消息显示为已成功发送:

问题描述:

>在nl.companyname上发送消息时,它可以正常工作.
>发送邮件并定位设备的令牌ID时,它可以正常工作.
>但是nl.companyname.acc不起作用.

试过的步骤:

>我删除了Firebase中的.acc应用程序并重新添加(并下载了新的Json文件).

任何帮助是极大的赞赏.

解决方法 在 Firebase Document中,它支持多种基于味道的项目.

You can have multiple Google-services.Json files for different build
variants) by placing Google-services.Json files in dedicated
directorIEs named for each variant under the app module root. For
example,if you have “development” and “release” build flavors,your
configuration Could be organized like this:

app/    Google-services.Json    src/development/Google-services.Json    src/release/Google-services.Json    ...

您可以在here找到完整的说明.

总结

以上是内存溢出为你收集整理的Firebase云消息传递不适用于Android上的Build变体全部内容,希望文章能够帮你解决Firebase云消息传递不适用于Android上的Build变体所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1138429.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存