appTemplate
appTemplate
  • 发布:2023-11-23 11:54
  • 更新:2023-11-23 11:54
  • 阅读:658

App版本更新,跳转应用市场更新通用

分类:uni-app

类似微信关于我们 版本更新 的效果。

// #ifdef APP-PLUS  
                if (uni.getSystemInfoSync().platform == "ios") {  
                    let appleId = 12345678;  
                    plus.runtime.launchApplication({  
                        action: `itms-apps://itunes.apple.com/cn/app/id${appleId}`,  
                    })  
                } else if (uni.getSystemInfoSync().platform == "android") {  
                    // 通用应用市场  
                    // 包名 com.xxxx.xxxxx  
                    let appurl = "market://details?id=com.xxxx.xxxxx";  
                    plus.runtime.openURL(appurl);  
                }  
                // #endif

详见: App快速开发模板

0 关注 分享

要回复文章请先登录注册