app-framework
app-framework copied to clipboard
Error in Success callbackId: NativeStorage
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.
Hey @asolagmbh, please can you prepare a test environment / let me know how to reproduce the error?
Same issue here
@patrickpissurno - Same question to you, please can you prepare a test environment with the error?
@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:
@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.