gpt4 book ai didi

android - 有没有办法通过我的应用商店部署当前版本?

转载 作者:行者123 更新时间:2023-11-29 00:09:39 24 4
gpt4 key购买 nike

我想知道是否有人知道可以通过应用商店部署当前版本的方法,我正在尝试在我的应用中创建一个更新弹出窗口,我可以在其中比较通过应用商店部署的版本和用户当前的版本。

最佳答案

您可以使用此模块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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com