作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想知道是否有人知道可以通过应用商店部署当前版本的方法,我正在尝试在我的应用中创建一个更新弹出窗口,我可以在其中比较通过应用商店部署的版本和用户当前的版本。
最佳答案
您可以使用此模块https://github.com/kimxogus/react-native-version-check通过该模块,您可以找到当前版本
设置您的 APP_ID 和 APP_NAME
VersionCheck.setAppID(APP_ID); // Your App ID for App Store URL
VersionCheck.setAppName(APP_NAME); // Your App Name for App Store URL
console.log(VersionCheck.getCurrentVersion()); // You get app current install version
VersionCheck.getLatestVersion()
.then(latestVersion => {
console.log(latestVersion); //You will get app latest Version from app store
});
关于android - 有没有办法通过我的应用商店部署当前版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46900299/
我是一名优秀的程序员,十分优秀!