当您将应用服务器从 GCM 迁移到 FCM 时,旧客户端会发生什么情况?

2023-07-30移动开发问题
5

本文介绍了当您将应用服务器从 GCM 迁移到 FCM 时,旧客户端会发生什么情况?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我正在考虑迁移到 FCM.事情的客户端相当简单,你移动一些代码并完成它.但是,在应用服务器上,出于显而易见的原因,我还需要支持旧客户端.我需要知道将 GCM 项目迁移到 FCM 时会发生什么.FCM 是否也会自动将消息转发到基于 GCM 的旧客户端?或者我是否需要将每条消息发送两次,一次发送到 FCM,一次发送到 GCM?这将如何影响特定于实现的内容,例如从 Firebase 的 Web 控制台发送的消息?有什么我应该注意的细节吗?

I'm considering migration to FCM. The client side of things is rather simple, you move some code around and get it done. However, on the app server, I'd need to support older clients as well, for obvious reasons. I need to know what happens when I migrate a GCM project to FCM. Does FCM automatically forward messages to older GCM-based clients as well? Or would I need to send each message twice, once to FCM and once to GCM? How will this impact implementation-specific stuff such as messages sent from Firebase's web console? Are there any details I should be aware of?

推荐答案

使用 FCM(导入的项目或使用它的端点,无论您是什么意思)仍然与 GCM 客户端(特别是令牌)兼容.他们仍然可以像往常一样接收消息.

Using FCM (an imported project or using it's endpoint, whichever you mean) is still compatible with GCM clients (specifically tokens). They'd still be able to receive messages like usual.

查看这些类似的帖子:

  • https://stackoverflow.com/a/37517339/4625829
  • https://stackoverflow.com/a/42674121/4625829

这篇关于当您将应用服务器从 GCM 迁移到 FCM 时,旧客户端会发生什么情况?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

硬件音量按钮更改应用程序音量
Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)...
2024-08-12 移动开发问题
10

恢复游戏 cocos2d
Resume game cocos2d(恢复游戏 cocos2d)...
2024-08-12 移动开发问题
6

Cocos2D + 仅禁用 Retina iPad 图形
Cocos2D + Disabling only Retina iPad Graphics(Cocos2D + 仅禁用 Retina iPad 图形)...
2024-08-12 移动开发问题
10

[ios.cocos2d+box2d]如何禁用自动旋转?
[ios.cocos2d+box2d]how to disable auto-rotation?([ios.cocos2d+box2d]如何禁用自动旋转?)...
2024-08-12 移动开发问题
7

从 Documents 目录存储和读取文件 iOS 5
Storing and reading files from Documents directory iOS 5(从 Documents 目录存储和读取文件 iOS 5)...
2024-08-12 移动开发问题
9

如何在 cocos2d 环境之外实现 cocos2d 游戏的虚拟摇杆?
How can I implement a virtual joystick for a cocos2d game outside the cocos2d environment?(如何在 cocos2d 环境之外实现 cocos2d 游戏的虚拟摇杆?)...
2024-08-12 移动开发问题
13