-
Notifications
You must be signed in to change notification settings - Fork 716
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
Cordova SQLIte Plugin Not Working in Child Windows #368
Comments
This seems like an issue with cordova-android. Not sure when I will get a chance to test it. BTW cordova-ios supports multiple JS bridge communications methods (iframe or XHR), and it had some problems with the iframe method in the past which seem to have been fixed. Not sure if cordova-android supports multiple bridge communications methods as well. For reference (iOS version):
|
Is there any approach we can do it for android as well, because it is very important for us, other wise whole architecture need to be revisit. |
You could use Web SQL or W3 local storage API if you target do not care about user backup capability and do not need to support the older Android versions. |
Thanks for the quick update, we are using Cordova V 1.8 and we have the given line in the file,the bridgemode value is coming as 0, and it is not working of window pop pup. function IOSExec(){ }; |
Can you guys try it with the new version of Cordova? |
We have tried in cordova latest JS file, but it is not working. I have an html page, where all the SQL queries are working fine, and I have link where I am opening a pop where the the content comes using Ifram, now in this Iframe when I am trying to connect to data base, it is not connecting and I am getting Java exception from Cordova |
Please post the log output with the exception. |
Below is the stack trace. Uncaught Error: Java exception was raised during method invocationcordova.js:967 pollOncecordova.js:958 pollOnceFromOnlineEvent Below is the logs from log cat: 10-26 05:54:54.298: V/sqlg(13393): prepare db 0xaf0c0a08 sql COMMIT 10-26 05:55:29.581: V/sqlg(13393): sqlc_st_finish 0x95cdf6e8 |
This is definitely caused by the Cordova framework. Please raise an issue on the Cordova project thanks! |
Thanks for the update, can you please share the links where I can raise this issue. |
I will log the issue later today or tomorrow. I want to provide absolute proof that the problem is with the framework and NOT this plugin. |
Thanks ... |
Hello Brody, thanks for the update and raising the issue for us, I wanted to know, when they can fix the issue, so that we can ustilize the build for the project, as of now we have very tight deadline and we stuck with this issue. It would be really help full for us, to know when we can get the fix from the Cordova |
Hi Rah, Thanks for the followup. To be honest, I am pretty swamped with a backlog of both paid work and bugs to be fixed in the free software. In addition, we have no way to predict when or even if they will fix the bugs in the Cordova framework. (The last two bugs that I submitted did not get fixed.) Did you guys look at the InAppBrowser plugin in case it may work for you? I highly recommend that you look for an alternative if you have such a tight deadline. I noticed something else in your log: the whitelist plugin complained that there is no If you are not ready to give up on the iframe, it would help me if you can publish a small project that tries to access the plugin from an iframe. I suggest you try a very simple sql statement such as Thanks, |
FYI I recently discovered that a Cordova plugin can override the |
Hello,
My application is working fine when I do not have any pops, but I have a requirement where I need to call a window (POP UP) in which data is loading in iframe, In that I need to fetch some details from data base, but when I am trying to connect to Data base, connection is working, but when I am trying below statement.
db.transaction( function(tx){
},function(tx,error){
console.log("Error while querying Quote from DB"+error.message);
});
}, errorCB, function(tx){
console.log("Successfully quried Parent Account list"+JSON.stringify(parentaccountlistData));
});
When I debug the code the controll is going to cordova js in the below method, and bridgeSecret value is coming -1.
function pollOnce(opt_fromOnlineEvent) {
if (bridgeSecret < 0) {
// This can happen when the NativeToJsMessageQueue resets the online state on page transitions.
// We know there's nothing to retrieve, so no need to poll.
return;
}
var msgs = nativeApiProvider.get().retrieveJsMessages(bridgeSecret, !!opt_fromOnlineEvent);
if (msgs) {
messagesFromNative.push(msgs);
// Process sync since we know we're already top-of-stack.
processMessages();
}
}
The text was updated successfully, but these errors were encountered: