【问题标题】:React Native CodePush updates not received when integrating into different app集成到不同应用程序时未收到 React Native CodePush 更新
【发布时间】:2018-02-03 06:10:54
【问题描述】:

我有两个 iOS 应用:

  1. 我使用 react-native init 作为 React Native 项目创建的应用程序,然后按照这些 instructions 集成 CodePush。
  2. 我想要将 React Native 和 CodePush 集成到的现有 iOS 应用程序。此应用使用与应用 #1 相同的 CodePush 部署密钥。

当我从 CLI 推送 CodePush 更新时,应用 #1 会获得更新,但应用 #2 不会。

【问题讨论】:

    标签: react-native-code-push


    【解决方案1】:

    原来这是因为 CodePush 过滤了应用程序 #1 的应用程序版本的更新。因为应用 #2 是现有应用,所以应用版本号比应用 #1 大得多,因此它没有获得 CodePush 更新。简单的解决方法是在部署时指定通配符 targetBinaryVersion

    code-push release-react my-ios-app ios --targetBinaryVersion *
    

    更多关于targetBinaryVersionhere的细节。

    【讨论】:

      猜你喜欢
      • 2017-03-18
      • 2018-08-29
      • 1970-01-01
      • 2017-05-02
      • 2018-11-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多