你能解释一下如何使用警报确认按钮启动 Google Play 应用程序吗?
这是代码:
let confirm = this.alertCtrl.create({
title: 'Nouvelle mise a jour disponible',
message: 'Version ameliorer de eLahiya disponible, voulez vous la telecharger?',
buttons: [
{
text: 'Plus tard',
handler: () => {
console.log('Disagree clicked');
}
},
{
text: 'Mise a jour',
handler: () => {
console.log('Agree clicked');
window.open("play.google.com/store/apps/details?id=<package_name>", '_system', 'location=yes')//
}
}
]
});
confirm.present();
Run Code Online (Sandbox Code Playgroud)
我想让我的应用程序在 Playstore 上打开我的应用程序页面,该怎么做?