【发布时间】:2018-04-19 19:19:52
【问题描述】:
我遵循了这个教程:http://ionicframework.com/docs/native/app-rate/
我正在使用第二种方法,但出现此错误:
未捕获(承诺):TypeError:无法读取属性“拆分”的 未定义类型错误:无法读取未定义的属性“拆分” 在 Function.Locales.getLocale (http://192.168.1.2:8100/plugins/cordova-plugin-apprate/www/locales.js:53:74) 在 showDialog (http://192.168.1.2:8100/plugins/cordova-plugin-apprate/www/AppRate.js:91:29) 在 Function.AppRate.promptForRating (http://192.168.1.2:8100/plugins/cordova-plugin-apprate/www/AppRate.js:203:7) 在 callCordovaPlugin (http://192.168.1.2:8100/build/vendor.js:77234:43) 在http://192.168.1.2:8100/build/vendor.js:77260:28 在http://192.168.1.2:8100/build/vendor.js:58635:17 在新 t (http://192.168.1.2:8100/build/polyfills.js:3:20886) 在 tryNativePromise (http://192.168.1.2:8100/build/vendor.js:58634:20) 在 getPromise (http://192.168.1.2:8100/build/vendor.js:58642:12) 在 wrapPromise (http://192.168.1.2:8100/build/vendor.js:77243:78)
如果我删除此行,我不会触发评级,但没有其他任何失败:
this.appRate.promptForRating(true);
这是我正在使用的插件: https://github.com/pushandplay/cordova-plugin-apprate
【问题讨论】:
-
不确定你是否打开了这个,但是github中有一个bug reported
-
是的,就是我。但是没有人在回购上回答:(
-
无论如何我都会用答案更新这两个问题
标签: angular typescript ionic3 cordova-plugins ionic-native