关于2024年6月20日后指定Firebase依赖库是否可用的技术问询
关于Firebase依赖库在2024年6月20日后可用性的解答
首先明确:Firebase团队宣布停止服务的是旧版FCM服务器端发送API(如Legacy HTTP API、XMPP协议),这和你列出的客户端依赖库的可用性是两个独立问题。
针对你提供的依赖清单:
implementation(platform("com.google.firebase:firebase-bom:28.4.1")) implementation "com.google.firebase:firebase-messaging" implementation platform('com.google.firebase:firebase-bom:28.4.1') implementation 'com.google.firebase:firebase-analytics-ktx' implementation 'com.google.firebase:firebase-crashlytics' implementation 'com.google.firebase:firebase-messaging' implementation 'com.google.firebase:firebase-perf'
- 这些均为Firebase客户端SDK依赖,负责设备端的消息接收、数据统计、崩溃上报、性能监控等功能,2024年6月20日后仍可正常使用,不受旧版FCM发送API停止服务的影响。
- 需要注意:如果你的后端服务通过旧版FCM API向设备发送消息,必须在截止日前迁移到HTTP v1 API;但客户端的
firebase-messagingSDK无需修改,它完全兼容新API发送的消息。 - 另外,Firebase BOM 28.4.1是2021年发布的版本,虽然当前可用,但建议定期升级到最新稳定版以获取安全补丁和新功能,不过这和本次旧版API停止服务无直接关联。
若未完成服务器端API迁移,需向Firebase支持提交延期申请,但这不会影响客户端依赖的正常运行。
内容的提问来源于stack exchange,提问作者kathir
相关产品推荐
相关产品推荐

