【问题标题】:How to check google play services version and firebase version in react-native project?如何在 react-native 项目中检查 google play services 版本和 firebase 版本?
【发布时间】:2019-10-25 07:26:39
【问题描述】:

我正在尝试安装需要 google play services 版本和 firebase 版本的 rn-push-notifications。你能帮帮我吗?

【问题讨论】:

  • 我认为您可以使用任何兼容版本。例如:googlePlayServicesVersion = "16.1.0" & firebaseVersion = "17.3.4"

标签: javascript react-native react-native-push-notification react-notifications


【解决方案1】:

我用这个方法:

首次运行./gradlew app:dependencies。您可以将其输出发送到文件以进行进一步搜索。

然后在输出中搜索 com.google.android.gms:play-services-base 和 com.google.firebase:firebase-core 的版本。

【讨论】:

    【解决方案2】:

    @Mohsen 的回答对我实现一个具有推送通知的 react 原生应用很有帮助。

    首先我安装了依赖react-native-push-notification

    然后我导航到 android 文件夹并运行此命令gradlew app:dependencies

    形成终端的输出,我通过搜索找到了googlePlayServicesVersion和firebaseMessagingVersion com.google.android.gms:play-services-basement 和 com.google.firebase:firebase-messaging

    另外,找到supportLibVersionthis answer有帮助

    【讨论】:

      猜你喜欢
      • 2018-12-15
      • 2017-12-29
      • 2018-11-12
      • 1970-01-01
      • 2017-12-11
      • 2018-08-19
      • 1970-01-01
      • 2020-08-02
      • 1970-01-01
      相关资源
      最近更新 更多