我想google play store
为我的Ionic
应用添加“为我们评分”链接。我尝试如下
window.open('market://details?id=com.app.id', '_system');
<a href="market://details?id=com.app.id" target="_system">Rate us</a>
两者都不适合我。上面的代码有什么问题?有什么办法吗?
为什么不使用此插件:https : //github.com/pushandplay/cordova-plugin-apprate
我这样成功地使用它:
AppRate.preferences.useLanguage = cfg.useLanguage;
AppRate.preferences.storeAppURL.ios = cfg.appStoreAppURL.ios;
AppRate.preferences.storeAppURL.android = cfg.appStoreAppURL.android;
AppRate.preferences.customLocale = cfg.customLocale;
AppRate.preferences.displayAppName = cfg.displayAppName;
AppRate.preferences.usesUntilPrompt = cfg.usesUntilPrompt;
AppRate.preferences.promptAgainForEachNewVersion = false;
AppRate.promptForRating();
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句