【发布时间】:2017-12-09 18:46:16
【问题描述】:
我正在尝试在我的应用程序中使用 nativestorage (https://github.com/TheCocoaProject/cordova-plugin-nativestorage)。
一切都很好,我可以构建应用程序了。
在我的app.components.ts 我有这个
this.setRootPage();
在this.platform.ready().then(()的末尾
哪个调用函数
setRootPage() {
//intro skip if value is set
this.nativeStorage.getItem("intro").then((intro) => {
if (intro) {
this.rootPage = Category1Page;
} else {
this.rootPage = IntroPage;
}
});
}
在 IOS 模拟器和使用 ionic cordova run browser 的浏览器上运行应用程序 Error: Uncaught (in promise): [object Object] 时出现错误
非常感谢您的帮助
离子信息
cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.12.0
ionic (Ionic CLI) : 3.12.0
global packages:
cordova (Cordova CLI) : 7.0.1
local packages:
@ionic/app-scripts : 1.3.7
Cordova Platforms : android 6.2.3 browser 4.1.0 ios 4.4.0
Ionic Framework : ionic-angular 3.3.0
System:
ios-deploy : 1.9.2
Node : v6.11.2
npm : 3.10.10
OS : macOS High Sierra
Xcode : Xcode 9.0 Build version 9A235
Misc:
backend : pro
【问题讨论】:
标签: ios cordova ionic-framework