Skip to content
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

Class not found error when using NativeStorage.getItem or setItem #131

Open
webnoob opened this issue Dec 29, 2018 · 7 comments
Open

Class not found error when using NativeStorage.getItem or setItem #131

webnoob opened this issue Dec 29, 2018 · 7 comments

Comments

@webnoob
Copy link

webnoob commented Dec 29, 2018

Hi,

Using the following code:

      NativeStorage.getItem('counter', r => {
        console.log('RES: ' + r)
      }, e => {
        console.log('ERROR: ' + e.code)
      })

I always get ERROR: Class not found.
What could cause this?

Note: I've seen the other post on this issue and re-build didn't resolve it. I'm running the app in cordova dev mode on an android emulator running version 8.0 of android and 2.3.2 of this plugin.

@benag
Copy link

benag commented Feb 23, 2019

did you solve this?

@webnoob
Copy link
Author

webnoob commented Feb 23, 2019

No...

@alokrajiv
Copy link
Collaborator

Just to confirm, you are running this after the deviceready event yes?

@webnoob
Copy link
Author

webnoob commented Feb 24, 2019

Correct, yes.

@GillesC
Copy link
Collaborator

GillesC commented Feb 26, 2019

Could you also provide the 'source' and 'exception' as per NativeStorageError?

@syntheticgoo
Copy link

Resolved for me with platform remove -> platform add (like almost everything in Ionic).

@rolinger
Copy link

I started getting this error this week too - on both of my two test phones. I will remove/add platform and report back

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants