Plugin broken with Phonegap 2.8.x : Invalid action
Opened this issue · 2 comments
biodiv commented
since pg 2.8 I cannot connect to a database. Visual Studio throws the following:
Failed to deserialize Cordova.Extension.Commands.SQLitePlugin+SQLitePluginOpenCloseOptions with JSON value :: ["System.Collections.Generic.Dictionary`2[System.String,System.Object]","SQLitePlugin991260919"]
ERROR: Exception in ProcessCommand :: Exception has been thrown by the target of an invocation.
ERROR: failed to InvokeMethodNamed :: open on Object :: SQLitePlugin
CommandString : DebugConsole/log/DebugConsole991260920/"Error openening DB: undefined"
Log:["Error openening DB: undefined","DebugConsole991260920"]
Code used to connect:
db = sqlitePlugin.openDatabase("mydatabase.sqlite3", '', '', '', function () {
if (db) {
console.log('successfully connected to database');
}
});
if I catch the error message it says "Invalid action".
Any ideas how to fix this?
marcucio commented
I'm not sure what happening based on that error and I won't be able to test it and look into it for a little while.
marcucio commented
It might be useful to see which Cordova apis changed, or if you can debug the code using something like a remote web inspector:
https://github.com/phonegap/phonegap/wiki/Debugging-in-PhoneGap