问题标签 [react-native-code-push]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
640 浏览

react-native - React Native:忽略 CodePush 更新中的文件

我的用例是我有一个 env 文件,每次我通过 Appcenter 使用环境变量构建应用程序时,它的内容都会被替换。我担心当我在本地更新文件时(例如添加另一个变量),该文件将在下一个 CodePush 版本中被覆盖(所以基本上在替换 vars 后从 Appcenter 构建的文件与 CodePush 相比会有不同的内容等着瞧)。这是正确的假设吗?如果是,有没有办法从 CodePush 更新中排除某些文件?谢谢。

0 投票
1 回答
223 浏览

react-native - 如何处理 codepush 和 Google playstore / Apple appstore 之间的潜在竞争条件

我刚刚构建了我的第一个 React Native 应用程序,我对能够通过 codepush 发送 OTA 更新感到非常兴奋。但是,当我进行更改时,发布过程是什么样的。想象一下会发生以下情况:

从 google playstore 下载 v3 的用户,在打开应用程序后,他会从 codepush 获得 v2 吗?我无法将 v3 推送到 codepush,因为它具有可能会中断的本机更改。

奇怪的是,没有任何 codepush 文章/文档涵盖这种潜在的竞争条件?

0 投票
1 回答
1085 浏览

android - CodePushHash 未找到与代码推送一起使用

所以我正在尝试使用 App Center 部署我的 React Native 应用程序并集成 Code Push。我安装了 App Center SDK 并且工作正常,但是当我添加 Code Push 插件时问题就来了。它很好地编译了项目并且也进行了同步,但是当我尝试在我的设备上安装它时,构建失败说:“进程'命令'节点''以非零退出值 1 完成”和“错误:ENOENT:否这样的文件或目录,打开'/home/balistic/Documents/sharryup/android/app/build/intermediates/assets/debug/CodePushHash'"

我正在使用 React Native 0.56。

0 投票
0 回答
1467 浏览

android - codepush update's appVersion is incorrect. It's always the same as the current app's version

I am trying to get codepush working for my react-native app on Android. For better understanding and control, i am manually checking for updates. Here's my code:

To release a new update, i update the android/app/build.gradle file like this:

and

In logcat, i can see that its getting the update, however, the appVersion of the update is the same as the app that was installed from playstore. Have tried multiple releases on codepush, the label increments, but the appVersion does not.

Is my understanding incorrect that appVersion should be the update's app version from the build.gradle file ?

0 投票
3 回答
2404 浏览

react-native - Xcode 10 Build Location -> Per-configuration Build Products Path

我只是想在我的 react-native 应用程序上实现 react-native 代码推送,但我只是在 Xcode 10 上找不到 Build Location -> Per-configuration Build Products Path。

这是我正在关注的指南:https ://docs.microsoft.com/en-us/appcenter/distribution/codepush/react-native#multi-deployment-testing

这种变化去哪儿了?

0 投票
1 回答
370 浏览

node.js - react-native 0.57.1​​ 捆绑包尝试为只读属性“未定义”分配值失败

在发布 CodePush 版本时,我遇到了这个问题。

我已经探索了一下,但提到的行似乎指向https://github.com/facebook/react-native/blob/master/local-cli/bundle/buildBundle.js#L39这是一个简单的NODE_ENV覆盖:

你知道这个问题是从哪里来的吗?

以下是更多信息:

更新

我已将其缩小到以下命令失败:

0 投票
0 回答
202 浏览

react-native - 使用 OTA 反应原生包的完整性

当一个 OTA 的 js 包在一个反应​​原生应用程序中(通过 CodePush 或类似的),如何确保包是完整的?

使用 App Store 或 Google Play 对 app / apk 文件进行签名,从而确保所有者批准它,并且之后也没有人接触过该文件。但似乎 react native js bundle OTA 没有这样的保护,是真的吗?

谢谢!

0 投票
1 回答
745 浏览

react-native - 使用模拟器为 ReactNative 实现 CodePush

我们正在测试我们的 ReactNative 应用程序的代码推送实现,以推送 js 更新。

所做的更改:

  • 创建应用中心登录并连接到 github 存储库。
  • 使用 cmd 从我的 react native 项目部署 CodePush

appcenter codepush release-react -a chandrasekarg/ReactNativeCodePush -d Staging

  • 修改app.js文件如下

我应该在哪里添加有关我的 AppCenter 帐户和项目名称的详细信息以查找 JS 包。?

如何使用 Android Emulator 测试 Code Push。?

0 投票
0 回答
231 浏览

android - 安装RN更新时APP崩溃

我将 react-native-code-push 集成到我的 RN 项目中。但是当我安装更新时,APP崩溃了。是源代码。

我不知道如何解决这个问题,有人可以帮忙吗?

0 投票
2 回答
1345 浏览

code-push - code-push:如何查找从 appcenter 网站添加的应用程序的部署密钥(添加新应用程序选项)

我使用appcenter 网站上的添加新应用选项添加了一个 react-native android 应用。现在我需要找到相同的部署密钥。我尝试
了代码推送部署列表 YourAppName --displayKeys
但它没有返回密钥。

虽然当我使用 CLI 代码推送应用添加应用程序时添加 YourAppName android react-native
然后使用早期命令检索密钥它工作正常并提供暂存和专业密钥。

请有人解释一下。

谢谢。