diff --git a/plugin.xml b/plugin.xml
index e6e2e24..833bb2d 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -38,6 +38,7 @@ under the License.
+
@@ -49,8 +50,6 @@ under the License.
-
-
diff --git a/www/AppRate.js b/www/AppRate.js
index ce40f7a..3abcd1a 100644
--- a/www/AppRate.js
+++ b/www/AppRate.js
@@ -200,14 +200,14 @@ AppRate = (function() {
} else {
iOSVersion = navigator.userAgent.match(/OS\s+([\d\_]+)/i)[0].replace(/_/g, '.').replace('OS ', '').split('.');
iOSVersion = parseInt(iOSVersion[0]) + (parseInt(iOSVersion[1]) || 0) / 10;
- window.open(PREF_STORE_URL_FORMAT_IOS + this.preferences.storeAppURL.ios, '_system');
+ cordova.InAppBrowser.open(PREF_STORE_URL_FORMAT_IOS + this.preferences.storeAppURL.ios, '_system');
}
} else if (/(Android)/i.test(navigator.userAgent.toLowerCase())) {
- window.open(this.preferences.storeAppURL.android, '_system');
+ cordova.InAppBrowser.open(this.preferences.storeAppURL.android, '_system');
} else if (/(BlackBerry)/i.test(navigator.userAgent.toLowerCase())) {
- window.open(this.preferences.storeAppURL.blackberry, '_system');
+ cordova.InAppBrowser.open(this.preferences.storeAppURL.blackberry, '_system');
} else if (/(IEMobile|Windows Phone)/i.test(navigator.userAgent.toLowerCase())) {
- window.open(this.preferences.storeAppURL.windows8, '_system');
+ cordova.InAppBrowser.open(this.preferences.storeAppURL.windows8, '_system');
}
return this;
};