OGeek|极客世界-中国程序员成长平台

标题: ios - 将旧代码中的 Firebase 数据库与 Google Cloud Messaging 结合使用 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 18:07
标题: ios - 将旧代码中的 Firebase 数据库与 Google Cloud Messaging 结合使用

我正在开发由另一位开发人员开发的旧版 iOS 应用程序,它使用 Google Cloud 消息传递推送通知,我添加了 Firebase 数据库,但我不得不禁用 GCM,因为当 Firebase 和 GCM 一起添加时我遇到了构建问题在 podfile 中,我使用单独的 plist 文件进行 Firebase 配置。

我无权使用 GCM 应用帐户迁移到 Firebase 消息传递。

有没有办法让 GCM 和 Firebase 数据库同时工作?

这是使用的 podfile

 pod 'Firebase/Core'
 pod 'Firebase/Auth'
 pod 'Firebase/Database'
 pod 'SDWebImage'
 pod 'KRevealController'
 pod 'MKNetworkKit'
 pod 'VGParallaxHeader'
 pod 'TTTAttributedLabel'
 pod 'RSBarcodes', '~> 0.1.3'
 pod 'MDHTMLLabel'
 pod 'EAIntroView', '~> 2.9.0'
 pod 'Google/Analytics’
 #pod 'Google/CloudMessaging'

如果未注释 #pod 'Google/CloudMessaging 行,则 xcode (7.3) 构建将失败,给出 duplicate symbols for architecture armv7 错误



Best Answer-推荐答案


如果您想使用 Firebase,您可能应该将 GCM 升级到 Firebase Cloud Messaging .内部都一样,除了客户端 SDK 应该更易于使用。

关于ios - 将旧代码中的 Firebase 数据库与 Google Cloud Messaging 结合使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40781878/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4