小编Mah*_*bou的帖子

使用警报确认按钮打开 Google Play

你能解释一下如何使用警报确认按钮启动 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 上打开我的应用程序页面,该怎么做?

alert google-play ionic2

2
推荐指数
2
解决办法
1929
查看次数

标签 统计

alert ×1

google-play ×1

ionic2 ×1