我想知道是否有人知道可以通过应用商店部署当前版本的方法,我正在尝试在我的应用中创建一个更新弹出窗口,我可以在其中比较通过应用商店部署的版本和用户当前的版本。
最佳答案
您可以使用此模块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/