Hello,
I am trying to use nativestorage (https://github.com/TheCocoaProject/cordova-plugin-nativestorage) in my application.
All is fine, and I can build the application.
In my app.components.ts
I have this
this.setRootPage();
at the end of the this.platform.ready().then(()
Which inturn calls the function
setRootPage() {
//intro skip if value is set
this.nativeStorage.getItem("intro").then((intro) => {
if (intro) {
this.rootPage = Category1Page;
} else {
this.rootPage = IntroPage;
}
});
}
I end up with an error when running the application Error: Uncaught (in promise): [object Object]
on both IOS simulator as well as browser using ionic cordova run browser
Your help is great appreciated
My Ionic Info
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