app-framework icon indicating copy to clipboard operation
app-framework copied to clipboard

Error in Success callbackId: NativeStorage

Open GeorgeGhiottone opened this issue 7 years ago • 5 comments

After the version 1.13.3 when i compile the android app, only on device, if i try to save in global storage like this.$db() i get this error: cordova.js:313 Error in Success callbackId: NativeStorage1932531123 : TypeError: error is not a function

Seems that this.$db is not defined inside methods (return undefined). It works only in created (or above) function.

If i rollback the version to the 1.13.3 all works fine as intended.

I have tried with a clean app but the problem persist.

GeorgeGhiottone avatar Nov 13 '17 12:11 GeorgeGhiottone

Hey @asolagmbh, please can you prepare a test environment / let me know how to reproduce the error?

scriptPilot avatar Jan 02 '18 18:01 scriptPilot

Same issue here

patrickpissurno avatar Jan 20 '18 01:01 patrickpissurno

@patrickpissurno - Same question to you, please can you prepare a test environment with the error?

scriptPilot avatar Jan 24 '18 20:01 scriptPilot

@scriptPilot You can reproduce the problem with a blank project. If you create a project and define some $db variable in a create (or mounted) function and try to access that variable in a method you will see that is not defined. I use this framework for a large project and now i'm stuck :( If i continue to use the 1.13 version i have big problem with IOS notifications system, but if i update to the last version $db variabile are no longer avaiable. If possibile to see a diff between the version 1.13 and the next one? Here a sample of code to try:

GeorgeGhiottone avatar Feb 16 '18 09:02 GeorgeGhiottone

@scriptPilot I have checked the difference between the 2 versions and i have discovered that is the implementation of NativeStorage that have caused the issue. If you have any advice for fixing this problem i realy appreciate. Thank you.

GeorgeGhiottone avatar Feb 16 '18 10:02 GeorgeGhiottone