-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ionic 2 App Preferences gives Plugin Not Installed #1299
Comments
Strangely I notice that .store does work with no error, and the promise is returned correctly:
|
I've installed 3.4.3 and .fetch() now returns:
|
|
Thanks. I'm now seeing an error when .then() is called:
Outputs:
|
Solved by waiting for platform ready:
|
For browser try: first "ionic cordova build browser" and after that "ionic cordova run browser". |
This worked for me!!! Thank you. |
I'm using Ionic 2 and have installed the AppPreferences plugin and it's prerequisites as per the docs. When calling fetch I receive a "plugin not installed" error similar to this issue with Ionic 1 #438.
Here's how I installed:
Fetch the preferences:
Returns:
Calling with a promise returns ".then is not a function":
The plugin is listed in package.json:
And config.xml
I've included it in app.module.ts
It shows up under /node_modules:
and /plugins:
The header of my index.html looks like this:
There is no reference to any of the @ionic-native plugins here but the others seem to work fine: eg: inappbrowser, so I suppose that is not needed for Ionic 2.
The text was updated successfully, but these errors were encountered: