IONIC - 如何使用 JavaScript 从应用程序在 Play 商店中打开应用程序的反馈页面

在我的 Ionic 应用程序中,我需要在 Play 商店中打开我的其他应用程序链接.

In my Ionic Application, I need to open my other application link in Play store.

到目前为止,我已经尝试过以下操作:

I have tried following so far :

window.open('market://details?id=com.myapp.something', '_self')

window.open('market://details?id=com.myapp.something', '_system', 'location=no');

以上链接在 InnAppBrowser 中打开,我需要它们在 Playstore 中打开.

Above links opens in InnAppBrowser, I need them to open in playstore itself.

有什么建议吗?

推荐答案

我发现你可以在系统浏览器中使用Package ID打开它,它会自动将你重定向到相应的应用商店.

I found that you can open it in your system Browser with Package ID and it will automatically redirect you to respective application store.

$window.open("https://play.google.com/store/apps/details?id=your-app-package-name&hl=en","_system");

$window.open("https://play.google.com/store/apps/details?id=your-app-package-name&hl=en","_system");

这对我来说效果最好.

有一个可用的插件可能会有所帮助:启动审查

There is a plugin available which might help : Launch Review

相关文章