android - 反应本机代码推送不更新已发布 APK 中的更改
问题描述
我做了所有反应本机代码推送的东西。但是当我运行 cmd = "appcenter codepush release-react -a xyz.abc-gmail.com/AppName -d Production" 时。然后我收到消息 =“成功发布了包含“C:\Users\Admin\AppData\Local\Temp\code-push2021519-1588-5sorfr.dahyn\CodePush”目录的更新到“Medicare”的“Production”部署应用程序。”。但安装的 APK 没有任何变化。请帮忙
这是codePush.js
import CodePush from "react-native-code-push";
import React from "react";
const CODE_PUSH_OPTIONS = {
checkFrequency: CodePush.CheckFrequency.ON_APP_RESUME,
};
const withCodePush = (WrappedComponent) => {
class WrappedApp extends React.PureComponent {
componentDidMount() {
CodePush.sync(
{ installMode: CodePush.InstallMode.IMMEDIATE },
this.syncWithCodePush,
null
);
}
syncWithCodePush = (status) => {
console.log("here is " + status);
};
render() {
return <WrappedComponent />;
}
}
return CodePush(CODE_PUSH_OPTIONS)(WrappedApp);
};
export default withCodePush;
这是 App.js
import withCodePush from "./codePush";
function registrationStackP({ navigation }) {
return (
screens......
);
}
function registrationStackD({ navigation }) {
return (
screens......
);
}
export default withCodePush(App);
请帮忙
解决方案
推荐阅读
- windows - 如何在 Windows 批处理文件中搜索子字符串的索引
- geofencing - 如何在没有 locationupdates 和当前位置的情况下使用 api 响应位置实现地理围栏
- bash - 将 Hive 列值导入 CSV 时,将其替换为当前日期
- html - 正则表达式,如果第二个正则表达式不在第一个正则表达式中,则从第二个正则表达式中选择
- javascript - 使用 Redux 更改路由时如何更改菜单切换状态
- android - MPAndroidChart 处的 ValueFormatter 重复了两次值
- android - 在自定义复合视图中“TextInputLayout”未显示扩展提示
- android - 谷歌分析是否适用于未上传到谷歌游戏商店的应用程序?
- android - 除了通过音频管理器之外,还有其他方法可以获取当前音量吗?
- html - 在 PDF 中绘制框并捕获坐标