构建 FirebaseCloudMessaging 示例后 Application在 Windows 上使用 Visual Studio 2015,使用 C++ 设置 appOptions,它显示“已初始化 Firbase Cloud Messaging”,但我没有看到可用于通信的 FCM token 。
最佳答案
Firebase C++ 库专为在 iOS 和 Android 应用中使用而设计。
sample project's readme 的第一行解释为:
iOS and Android samples for the Firebase C++ SDK.
第一行documentation of the Firebase C++ SDK :
The Firebase C++ SDK provides a C++ interface on top of Firebase for iOS and Android.
因此,虽然示例应用可以在其他平台上编译,但它们运行所需的底层基础架构在这些平台上不可用。
关于c++ - 我们可以使用 FireBase 云消息传递在 Windows 桌面/控制台或 Linux 控制台应用程序上使用 C++ 发送或接收消息或两种方式吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43229503/