ionic2 - Open playstore using alert confirm button -


hi can explain me how lauch playstore using alert confirm button? here's code

let confirm = this.alertctrl.create({   title: 'nouvelle mise jour disponible',   message: 'version ameliorer de elahiya disponible, voulez vous la telecharger?',   buttons: [     {       text: 'plus tard',       handler: () => {         console.log('disagree clicked');       }     },     {       text: 'mise jour',       handler: () => {         console.log('agree clicked');         window.open("play.google.com/store/apps/details?id=<package_name>", '_system', 'location=yes')//       }     }   ] }); confirm.present(); 

i want app open app's page on playstore, how it?

this works me:

window.open('market://details?id=your.package.name', '_system'); 

this android though. others:

ios: itms-apps://itunes.apple.com/app/<appid> amazon: amzn://apps/android?p=<apppackageid> 

let me know if works you. cordova-plugin-market alternative if not work.


Comments